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

go.mod: move to Go 1.17 #724

Merged
merged 2 commits into from
Oct 8, 2021
Merged

go.mod: move to Go 1.17 #724

merged 2 commits into from
Oct 8, 2021

Conversation

mythi
Copy link
Contributor

@mythi mythi commented Oct 8, 2021

go mod tidy adds more requirements because of the changes in 1.17:

"Go versions 1.17 and higher retain more requirements in order to
support lazy module loading."

Closes: #716

Signed-off-by: Mikko Ylinen mikko.ylinen@intel.com

@@ -41,7 +41,7 @@ jobs:
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
echo "MOD_PATH=$(go env GOPATH)/pkg/mod" >> $GITHUB_ENV
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ${{ env.MOD_PATH }}
Copy link
Contributor Author

@mythi mythi Oct 8, 2021

Choose a reason for hiding this comment

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

FWIW, the official doc uses:

path: |
      ~/.cache/go-build
      ~/go/pkg/mod

maybe we don't need MOD_PATH either?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, worth checking. I don't remember where this MOD_PATH came from. Probably that was in the docs for cache@v1.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
go mod tidy adds more requirements because of the changes in 1.17:

"Go versions 1.17 and higher retain more requirements in order to
support lazy module loading."

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
@codecov-commenter
Copy link

Codecov Report

Merging #724 (355c934) into main (9c0c8d4) will not change coverage.
The diff coverage is n/a.

❗ Current head 355c934 differs from pull request most recent head a0f81d7. Consider uploading reports for the commit a0f81d7 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #724   +/-   ##
=======================================
  Coverage   60.06%   60.06%           
=======================================
  Files          32       32           
  Lines        2782     2782           
=======================================
  Hits         1671     1671           
  Misses       1028     1028           
  Partials       83       83           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c0c8d4...a0f81d7. Read the comment docs.

Copy link
Contributor

@rojkov rojkov left a comment

Choose a reason for hiding this comment

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

Seems to work OK.

@bart0sh bart0sh merged commit 65411c3 into intel:main Oct 8, 2021
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.

move to Go 1.17
4 participants