Skip to content

Commit 5692ec0

Browse files
itowlsonvdice
authored andcommitted
Enable template SDK refs to be changed from main
Signed-off-by: itowlson <[email protected]>
1 parent 78e0f7f commit 5692ec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bump-versions: bump-go-versions bump-rust-versions
55
bump-go-versions:
66
@for dir in $$(ls -d *-go) ; do \
77
cd $$dir/content ; \
8-
sed -i.sed-bak -e 's%require github.com/fermyon/spin/sdk/go v.*%require github.com/fermyon/spin/sdk/go ${SDK_VERSION}%g' go.mod ; \
8+
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 ; \
99
sed -i.sed-bak -e 's/{{project-name | snake_case}}/foo/g' go.mod ; \
1010
go mod tidy ; \
1111
sed -i.sed-bak -e 's/foo/{{project-name | snake_case}}/g' go.mod ; \
@@ -16,7 +16,7 @@ bump-go-versions:
1616
bump-rust-versions:
1717
@for dir in $$(ls -d *-rust) ; do \
1818
cd $$dir/content ; \
19-
sed -i.sed-bak -e 's%"https://github.com/fermyon/spin", tag = "v.*"%"https://github.com/fermyon/spin", tag = "${SDK_VERSION}"%g' Cargo.toml ; \
19+
sed -r -i.sed-bak -e 's%"https://github.com/fermyon/spin", tag = "[a-zA-Z0-9.]+"%"https://github.com/fermyon/spin", tag = "${SDK_VERSION}"%g' Cargo.toml ; \
2020
rm *.sed-bak ; \
2121
cd - 2>&1 >/dev/null ; \
2222
done

0 commit comments

Comments
 (0)