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

feat: allow overriding golangci-lint version with env var #523

Closed
wants to merge 4 commits into from

Conversation

kaldorn
Copy link
Contributor

@kaldorn kaldorn commented Apr 22, 2023

What this PR does / why we need it

Allows a repo to have a .tool-versions for golangci-lint, specificaly. This is only needed until this issue is fixed: golangci/golangci-lint#3711

Jira ID

[XX-XX]

Notes for your reviewers

@kaldorn kaldorn requested a review from a team as a code owner April 22, 2023 00:19
shell/lib/asdf.sh Outdated Show resolved Hide resolved
ensure that version is installed
@kaldorn kaldorn changed the title feat: allow repo level .tool-version overrides feat: allow overriding golangci-lint version with env var Apr 24, 2023
@kaldorn kaldorn requested a review from jkinkead April 24, 2023 22:12
# shellcheck disable=SC2155
local version="$(asdf_get_version_from_devbase "$tool")"
# Allow overriding the golangci-lint version with an environmental variable
if [[ $tool = "golangci-lint" ]] && [[ "${GOLANGCI_LINT_VER}" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Putting a version in the top block in the .tool-versions should already be overriding... so I'm not really sure this is required.

Copy link
Contributor

Choose a reason for hiding this comment

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

Talking more offline -- realized that this is required for devbase managed versions. We need the ability for the .tool-versions in the root of the repo to override the devbase specified version, which isn't a thing today.

@jaredallard
Copy link
Contributor

Replacing with #536

@jaredallard jaredallard deleted the feat-allow-repo-level-.tool-version-overrides branch May 22, 2023 21:25
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.

buildssa.Analyzer: panic: cannot convert *t0 (M) to PM
3 participants