Skip to content

Commit

Permalink
build(ci): go mod=readonly
Browse files Browse the repository at this point in the history
should help avoid collisions with ruby bundler cache which likes
to live in vendor directory on github actions.
  • Loading branch information
mroth committed Dec 8, 2021
1 parent a975a8b commit 0a9db7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ desc "builds the binary"
task :build do
# note starting in go1.18 this information will be available via go version -m
version = `git describe --tags HEAD`
sh "go", "build", "-o", "bin/scmpuff", "-ldflags", "-X main.VERSION=#{version}"
sh "go", "build", "-o", "bin/scmpuff", "-mod=readonly", "-ldflags", "-X main.VERSION=#{version}"
end

desc "builds & installs the binary to $GOPATH/bin"
Expand Down

0 comments on commit 0a9db7e

Please sign in to comment.