-
Notifications
You must be signed in to change notification settings - Fork 85
task: add go toolchain #2779
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
task: add go toolchain #2779
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.56.1 | ||
version: v1.56.2 | ||
unit-tests: | ||
env: | ||
COVERAGE: coverage.out | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
|
||
GOLANGCI_VERSION=v1.56.1 | ||
GOLANGCI_VERSION=v1.56.2 | ||
COVERAGE=coverage.out | ||
|
||
MCLI_GIT_SHA?=$(shell git rev-parse HEAD) | ||
|
@@ -28,6 +28,7 @@ export PATH := $(shell go env GOPATH)/bin:$(PATH) | |
export PATH := ./bin:$(PATH) | ||
export TERM := linux-m | ||
export GO111MODULE := on | ||
export GOTOOLCHAIN := local | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found the "auto" behavior with asdf to be dangerous as it installs versions within the version manager so avoiding issues here |
||
export ATLAS_E2E_BINARY | ||
|
||
.PHONY: pre-commit | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ module github.com/mongodb/mongodb-atlas-cli/atlascli | |
|
||
go 1.22 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. checked out to the branch and got:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see #2779 (comment) you need to install/set go1.22 however you are managing your go versions, I have swapped from asdf to using the homebrew version ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, if I set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I can't reproduce before doing that change can you confirm you have updated your env correctly, as in reload the shell env, via something like Please consider that
should be equivalent to
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think if it's not reproducible I can workaround to fix my machine, so I'll leave my stamp.
blva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
toolchain go1.22.1 | ||
|
||
require ( | ||
cloud.google.com/go/kms v1.15.8 | ||
github.com/AlecAivazis/survey/v2 v2.3.7 | ||
|
@@ -18,7 +20,7 @@ require ( | |
github.com/briandowns/spinner v1.23.0 | ||
github.com/creack/pty v1.1.21 | ||
github.com/denisbrodbeck/machineid v1.0.1 | ||
github.com/evergreen-ci/shrub v0.0.0-20231121224157-600e066f9de6 | ||
github.com/evergreen-ci/shrub v0.0.0-20240215220116-3f233ddeff2a | ||
github.com/gemalto/kmip-go v0.0.10 | ||
github.com/go-test/deep v1.1.0 | ||
github.com/golang-jwt/jwt/v4 v4.5.0 | ||
|
@@ -44,7 +46,7 @@ require ( | |
go.mongodb.org/atlas-sdk/v20231115008 v20231115008.0.0 | ||
go.mongodb.org/mongo-driver v1.14.0 | ||
golang.org/x/crypto v0.21.0 | ||
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc | ||
golang.org/x/exp v0.0.0-20240318143956-a85f2c67cd81 | ||
golang.org/x/mod v0.16.0 | ||
golang.org/x/tools v0.19.0 | ||
google.golang.org/api v0.170.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since go can be its own version manager let's forget about asdf