Skip to content

fix: lint permission issue#9740

Open
emirot wants to merge 3 commits intovelero-io:mainfrom
emirot:fix/lint_issue
Open

fix: lint permission issue#9740
emirot wants to merge 3 commits intovelero-io:mainfrom
emirot:fix/lint_issue

Conversation

@emirot
Copy link
Copy Markdown
Contributor

@emirot emirot commented Apr 22, 2026

Thank you for contributing to Velero!

Please add a summary of your change

When doing make lint locally I get this issue #9702

Does your change fix a particular issue?

Fixes #9702
@kaovilai

After

➜  velero git:(fix/lint_issue) ✗ make lint
Using Cached Image: velero/build-image:eb0a1814c
Dir: /.cache/golangci-lint
Size: 4.6MiB
Running golangci-lint run

Please indicate you've done the following:

Signed-off-by: emirot <emirot.nolan@gmail.com>
emirot added 2 commits April 21, 2026 21:39
Signed-off-by: emirot <emirot.nolan@gmail.com>
@emirot
Copy link
Copy Markdown
Contributor Author

emirot commented Apr 22, 2026

@blackpiglet @lubronzhan

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread Makefile

build-dirs:
@mkdir -p _output/bin/$(GOOS)/$(GOARCH)
@mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(GOOS)/$(GOARCH) .go/go-build .go/golangci-lint
Copy link
Copy Markdown
Contributor

@blackpiglet blackpiglet Apr 22, 2026

Choose a reason for hiding this comment

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

Please create the .go/goimports directory here.

@mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(GOOS)/$(GOARCH) .go/go-build .go/golangci-lint .go/goimports

Comment thread Makefile
-v "$$(pwd)/.go/std/$(GOOS)/$(GOARCH):/usr/local/go/pkg/$(GOOS)_$(GOARCH)_static:delegated" \
-v "$$(pwd)/.go/go-build:/.cache/go-build:delegated" \
-v "$$(pwd)/.go/golangci-lint:/.cache/golangci-lint:delegated" \
-v "$$(pwd)/.go/golangci-lint:/.cache/goimports" \
Copy link
Copy Markdown
Contributor

@blackpiglet blackpiglet Apr 22, 2026

Choose a reason for hiding this comment

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

Suggest to use the created .go/goimports directory here

Suggested change
-v "$$(pwd)/.go/golangci-lint:/.cache/goimports" \
-v "$$(pwd)/.go/goimports:/.cache/goimports:delegated" \

Copy link
Copy Markdown
Contributor

@blackpiglet blackpiglet left a comment

Choose a reason for hiding this comment

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

Please check my comments for details.
The current change doesn't look right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make lint on fresh install gives me permission denied

3 participants