Skip to content

Comments

tools: Hermitise repo and pin versions required#37

Merged
camh- merged 1 commit intomasterfrom
hermitise
Jan 30, 2025
Merged

tools: Hermitise repo and pin versions required#37
camh- merged 1 commit intomasterfrom
hermitise

Conversation

@camh-
Copy link
Member

@camh- camh- commented Dec 28, 2024

Hermitise this repository as the version of golangci-lint used is not
compatible with more recent Go releases so we will either need to pin to
an older version of Go or upgrade golangci-lint. The former is tricky to
do simply, and the latter is painful with the churn in golangci-lint.

The alternative is to use hermit and pin the versions currently
required. This is what is done here:

hermit init --no-git
hermit install go-1.13.5
hermit install golangci-lint-1.37.0

Remove the custom version login for golangci-lint from the Makefile, and
add the hermit auto-activation. Note that the only 1.13 version of Go in
hermit is 1.13.5, while the latest point release is 1.13.15. I chose
1.13 as that is what is in the go.mod file.

Subsequent commits will bump these versions and adjust the code to work
with newer golangci-lint errors.

Update GitHub CI to rely on hermit for installing the right versions
instead of using specific actions. Also run on all PRs, not just those
to be merged to master. This allows CI to run for stacked PRs.

Add /.hermit/ to .gitignore - this is hermit's "state" directory for
certain hermit packages and should never be committed.

@camh- camh- requested a review from juliaogris December 28, 2024 07:09
@camh- camh- force-pushed the hermitise branch 3 times, most recently from 165c09a to 2d5c913 Compare December 28, 2024 07:18
juliaogris
juliaogris previously approved these changes Jan 30, 2025
Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

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

sorry this took so long! 💚

Hermitise this repository as the version of golangci-lint used is not
compatible with more recent Go releases so we will either need to pin to
an older version of Go or upgrade golangci-lint. The former is tricky to
do simply, and the latter is painful with the churn in golangci-lint.

The alternative is to use hermit and pin the versions currently
required. This is what is done here:

    hermit init --no-git
    hermit install go-1.13.5
    hermit install golangci-lint-1.37.0

Remove the custom version login for golangci-lint from the Makefile, and
add the hermit auto-activation. Note that the only 1.13 version of Go in
hermit is 1.13.5, while the latest point release is 1.13.15. I chose
1.13 as that is what is in the `go.mod` file.

Subsequent commits will bump these versions and adjust the code to work
with newer golangci-lint errors.

Update GitHub CI to rely on hermit for installing the right versions
instead of using specific actions. Also run on all PRs, not just those
to be merged to master. This allows CI to run for stacked PRs.

Add `/.hermit/` to `.gitignore` - this is hermit's "state" directory for
certain hermit packages and should never be committed.
@camh- camh- merged commit abc44b0 into master Jan 30, 2025
2 checks passed
@camh- camh- deleted the hermitise branch January 30, 2025 01:32
@camh- camh- restored the hermitise branch January 30, 2025 01:34
@camh- camh- deleted the hermitise branch January 30, 2025 01:35
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.

2 participants