File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33mv python_template " $1 "
44
55# change project name in all files
6- find . \( -type d -name .git -prune \) -o \( -type f -not -name ' tasks.json' -not -name ' update_from_template.sh' \) -print0 | xargs -0 sed -i " s/python_template/$1 /g"
6+ find . \( -type d -name .git -prune \) -o \( -type f -not -name ' tasks.json' -not -name ' update_from_template.sh' -not -name ' pixi.lock' \) -print0 | xargs -0 sed -i " s/python_template/$1 /g"
7+
8+ # regenerate lockfile to match renamed project
9+ pixi update
710
811# author name
912if [ -n " $2 " ]; then
Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ git fetch --all
66git checkout main && git pull origin main
77git checkout -B feature/update_from_template; git pull
88git merge template/main --allow-unrelated-histories -m ' feat: pull changes from remote template'
9- git checkout --ours pixi.lock; git add pixi.lock
9+ git checkout --ours pixi.lock
10+
11+ # regenerate lockfile to match merged pyproject.toml
12+ pixi update
13+ git add pixi.lock
14+ git diff --cached --quiet || git commit -m ' chore: update pixi.lock after template merge'
15+
1016git remote remove template
1117git push --set-upstream origin feature/update_from_template
1218git checkout main
You can’t perform that action at this time.
0 commit comments