File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -123,16 +123,7 @@ jobs:
123
123
- uses : ruby/setup-ruby@v1
124
124
with :
125
125
ruby-version : ${{ matrix.ruby }}
126
- bundler-cache : false
127
-
128
- # FIXME: setup-go installs cache in `vendor/` and setup-ruby installs cache in `vendor/bundle/`
129
- # If we use the cache in setup-go and setup-ruby at the same time, this doesn't work well because they use the same directory.
130
- # Therefore, the installation location needs to be changed from the setup-ruby default.
131
- - name : bundle install
132
- run : |
133
- set -xe
134
- bundle config --local path ruby-vendor/bundle
135
- bundle install --jobs 4
126
+ bundler-cache : true
136
127
137
128
- name : export CGO_CFLAGS for golangci-lint
138
129
run : bundle exec rake go:build_envs[CGO_CFLAGS] >> $GITHUB_ENV
@@ -148,7 +139,7 @@ jobs:
148
139
uses : golangci/golangci-lint-action@v6
149
140
with :
150
141
version : ${{ env.GOLANGCI_LINT_VERSION }}
151
- args : --build-tags ${{ env.BUILD_TAG }}
142
+ args : --build-tags ${{ env.BUILD_TAG }} --modules-download-mode=readonly
152
143
153
144
- name : Slack Notification (not success)
154
145
uses : act10ns/slack@v2
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace :go do
87
87
end
88
88
89
89
build_tag = GoGem ::Util .ruby_minor_version_build_tag
90
- sh GoGem ::RakeTask .build_env_vars, " golangci-lint run --build-tags #{ build_tag } "
90
+ sh GoGem ::RakeTask .build_env_vars, " golangci-lint run --build-tags #{ build_tag } --modules-download-mode=readonly "
91
91
end
92
92
end
93
93
end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace :go do
14
14
end
15
15
16
16
build_tag = GoGem ::Util . ruby_minor_version_build_tag
17
- sh GoGem ::RakeTask . build_env_vars , "golangci-lint run --build-tags #{ build_tag } "
17
+ sh GoGem ::RakeTask . build_env_vars , "golangci-lint run --build-tags #{ build_tag } --modules-download-mode=readonly "
18
18
end
19
19
end
20
20
You can’t perform that action at this time.
0 commit comments