Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update templates v0.4.0 #635

Merged
merged 2 commits into from
Jul 13, 2022
Merged

Update templates v0.4.0 #635

merged 2 commits into from
Jul 13, 2022

Conversation

lann
Copy link
Collaborator

@lann lann commented Jul 13, 2022

No description provided.

lann added 2 commits July 13, 2022 10:15
The GNU (Linux) and BSD (MacOS) flavors of sed have mutually-incompatible
ways to ask for "in-place editing without backups", so instead we create
the backups and immediately delete them.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
@@ -5,16 +5,18 @@ bump-versions: bump-go-versions bump-rust-versions
bump-go-versions:
@for dir in $$(ls -d *-go) ; do \
cd $$dir/content ; \
sed -i '' -e 's%require github.com/fermyon/spin/sdk/go v.*%require github.com/fermyon/spin/sdk/go ${SDK_VERSION}%g' go.mod ; \
sed -i '' -e 's/{{project-name | snake_case}}/foo/g' go.mod ; \
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 ; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supports a wider array of sed flavors, I presume?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the idea: d609eb1

@lann lann merged commit aa2a244 into fermyon:main Jul 13, 2022
@lann lann deleted the update-templates-v0.4.0 branch July 13, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants