Skip to content

Commit 2f72da0

Browse files
committed
GitHub: fix permission denied in lint CI step
This attempts to fix the following error that sometimes occurs on the GitHub runners: go: github.com/lightninglabs/lightning-terminal imports github.com/lightningnetwork/lnd/kvdb imports github.com/lightningnetwork/lnd/kvdb/etcd imports go.etcd.io/etcd/server/v3/embed: mkdir /home/runner/go/pkg/mod/cache/download/go.etcd.io/etcd/server: permission denied The suspicion is that the lint step that runs as root within docker changes the permissions of some of the module cache directories. So by simply changing the order of operations, this should be fixed.
1 parent 1657584 commit 2f72da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
run: mkdir -p app/build; touch app/build/index.html
208208

209209
- name: run check
210-
run: make lint mod-check
210+
run: make mod-check && make lint
211211

212212
########################
213213
# unit tests

0 commit comments

Comments
 (0)