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 1.16 #44

Merged
merged 17 commits into from
May 28, 2021
Merged

Go 1.16 #44

merged 17 commits into from
May 28, 2021

Conversation

hugelgupf
Copy link
Member

No description provided.

hugelgupf added 2 commits May 6, 2021 13:09
Signed-off-by: Chris Koch <[email protected]>
Two things changed in Go 1.16:

1. require directives

go.mod files must have `require` directives. Previously, `replace` was
enough. Now every dependency module must have a `require` and `replace`.

`require`s look like this: `require <module> <module-version>`. Go
validates the <module-version> string, so we had to plug in a
valid(-looking) version number.

2. Go expects accurate go.sum files in the main module. We solve this by
simply copying & appending every go.sum file of the individual modules
in the main go.sum.

Signed-off-by: Chris Koch <[email protected]>
hugelgupf added 7 commits May 6, 2021 14:32
Signed-off-by: Chris Koch <[email protected]>
test-external.sh attempts to generate a good go.mod and go.sum for u-bmc
on the fly. As of Go 1.16 that's hard.

Signed-off-by: Chris Koch <[email protected]>
@hugelgupf hugelgupf force-pushed the 116 branch 2 times, most recently from db77f78 to 3a1cce6 Compare May 28, 2021 15:21
@hugelgupf hugelgupf merged commit b68891d into u-root:main May 28, 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.

1 participant