Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

build: update to Go 1.18 #116

Merged
merged 1 commit into from
Aug 15, 2022
Merged

build: update to Go 1.18 #116

merged 1 commit into from
Aug 15, 2022

Conversation

Juneezee
Copy link
Contributor

This PR introduces two changes:

  1. Updates the go directive in go.mod file by running go mod tidy -go=1.17 to enable module graph pruning and lazy module loading.
  2. Update GitHub Actions go.yml to Go 1.17

Note 1: This PR does not prevent users with earlier Go versions from successfully building packages from this module.

Note 2: The additional require directive is used to record indirect dependencies for Go 1.17 or higher, see https://go.dev/ref/mod#go-mod-file-go.

go.mod Outdated
@@ -1,13 +1,17 @@
module github.com/duo-labs/webauthn

go 1.17
Copy link
Contributor

Choose a reason for hiding this comment

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

this will set min required version to 1.17 - that's not good for a library!

Copy link
Contributor Author

@Juneezee Juneezee Jan 22, 2022

Choose a reason for hiding this comment

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

Setting go 1.17 does not prevent users with earlier Go versions from successfully building packages from this module since we are not using any Go 1.17 specific language features yet.

In addition, Go 1.16 will soon reach its end-of-life when Go 1.18 is released in February 2022.

@@ -5,10 +5,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use a matrix to test minimum required go version and latest?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The latest commit now uses matrix to test on Go 1.16 and Go 1.17

@@ -1,3 +1,4 @@
//go:build go1.13
Copy link
Contributor

Choose a reason for hiding this comment

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

ACK

@@ -1,3 +1,4 @@
//go:build !go1.13
Copy link
Contributor

Choose a reason for hiding this comment

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

ACK

@nicksteele
Copy link
Contributor

👍

@aseigler
Copy link
Contributor

Perhaps we bump this to 1.18 now that 1.17 is no longer supported and try to get it merged?

Signed-off-by: Eng Zer Jun <[email protected]>
@Juneezee Juneezee changed the title build: update to Go 1.17 build: update to Go 1.18 Aug 14, 2022
@Juneezee
Copy link
Contributor Author

@aseigler Updated to Go 1.18. Please take a look again, thank you 😃

@aseigler
Copy link
Contributor

I think this is ready to merge @MasterKale unless anyone has objections? This is what is breaking actions currently.

@MasterKale
Copy link
Collaborator

I just first-time contributor actions, I think those have to run? Mobile doesn't show that real well so I'll check later today when I get back in front of a computer. If everything looks fine there I'll merge.

@MasterKale
Copy link
Collaborator

Merging despite test failures, it's @aseigler's fault if it breaks a bunch of stuff (and mine if it fixes them all) :shipit:

@MasterKale MasterKale merged commit e12b68d into duo-labs:master Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants