Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Backport v2.0] Templates makefile: handle prerelease origin, handle Go v2 #2024

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bump-versions: bump-go-versions bump-rust-versions
bump-go-versions:
@for dir in $$(ls -d *-go) ; do \
cd $$dir/content ; \
sed -r -i.sed-bak -e 's%require github.com/fermyon/spin/sdk/go [a-zA-Z0-9.]+%require github.com/fermyon/spin/sdk/go ${SDK_VERSION}%g' go.mod ; \
sed -r -i.sed-bak -e 's%require github.com/fermyon/spin/sdk/go/v2 [-a-zA-Z0-9.]+%require github.com/fermyon/spin/sdk/go/v2 ${SDK_VERSION}%g' go.mod ; \
sed -i.sed-bak -e 's/{{project-name | snake_case}}/foo/g' go.mod ; \
go mod tidy ; \
sed -i.sed-bak -e 's/foo/{{project-name | snake_case}}/g' go.mod ; \
Expand All @@ -16,7 +16,7 @@ bump-go-versions:
bump-rust-versions:
@for dir in $$(ls -d *-rust) ; do \
cd $$dir/content ; \
sed -r -i.sed-bak -e 's%"https://github.com/fermyon/spin", ((tag = "[a-zA-Z0-9.]+")|(branch = "main"))%"https://github.com/fermyon/spin", tag = "${SDK_VERSION}"%g' Cargo.toml ; \
sed -r -i.sed-bak -e 's%"https://github.com/fermyon/spin", ((tag = "[-a-zA-Z0-9.]+")|(branch = "main"))%"https://github.com/fermyon/spin", tag = "${SDK_VERSION}"%g' Cargo.toml ; \
rm *.sed-bak ; \
cd - 2>&1 >/dev/null ; \
done