Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

autorest/adal: update modules, and switch to github.com/golang-jwt/jwt v4.0.0 #645

Merged
merged 8 commits into from
Aug 24, 2021

Conversation

thaJeztah
Copy link
Contributor

@thaJeztah thaJeztah commented Aug 13, 2021

fixes #642
fixes #648

  • autorest: update go.mod files to latest patch releases
  • autorest/adal: switch to github.com/golang-jwt/jwt v3.2.2

The github.com/form3tech-oss/jwt-go fork has been archived, and all
development is moved to the github.com/golang-jwt/jwt project, which
is now the canonical/official fork of github.com/dgrijalva/jwt-go.

The latest version of github.com/golang-jwt/jwt (v4.0.0) also adds
go module support, but the main github.com/Azure/go-autorest package
currently uses "go dep", which is not compatible with go modules that
use versioned import paths (github.com/golang-jwt/jwt/v4) for modules
that do not use a v<version> directory.

As part of submitting, please make sure you can make the following assertions:

  • I've tested my changes, adding unit tests if applicable.
  • I've added Apache 2.0 Headers to the top of any new source files.

@thaJeztah
Copy link
Contributor Author

@thaJeztah
Copy link
Contributor Author

oh! this probably requires Go to be updated; see distribution/distribution#3472

matrix:
Linux_Go113:
vm.image: 'ubuntu-18.04'
go.version: '1.13'
Linux_Go114:
vm.image: 'ubuntu-18.04'
go.version: '1.14'

@thaJeztah
Copy link
Contributor Author

marking as draft until #646 is merged (included in this PR to validate in CI, but I'll rebase once #646 is merged)

@thaJeztah thaJeztah marked this pull request as draft August 13, 2021 13:05
@thaJeztah thaJeztah marked this pull request as ready for review August 23, 2021 18:33
@jhendrixMSFT jhendrixMSFT self-requested a review August 23, 2021 18:37
@thaJeztah thaJeztah changed the title autorest/adal: update modules, and switch to github.com/golang-jwt/jwt v3.2.2 autorest/adal: update modules, and switch to github.com/golang-jwt/jwt v4.0.0 Aug 23, 2021
@thaJeztah thaJeztah force-pushed the update_jwt branch 2 times, most recently from 1b26c25 to b44fbae Compare August 23, 2021 20:44
thaJeztah and others added 5 commits August 23, 2021 23:35
The github.com/form3tech-oss/jwt-go fork has been archived, and all
development is moved to the github.com/golang-jwt/jwt project, which
is now the canonical/official fork of github.com/dgrijalva/jwt-go.

The latest version of github.com/golang-jwt/jwt (v4.0.0) also adds
go module support, but the main github.com/Azure/go-autorest package
currently uses "go dep", which is not compatible with go modules that
use versioned import paths (github.com/golang-jwt/jwt/v4) for modules
that do not use a `v<version>` directory.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Go Dep does not support versioned module paths, so we may as well
remove it.

Note that I did not add a `go.mod` at the root of the repository.
The roof ot this repository is an empty module, and adding a go.mod
will require a major version update, to adjust the name to match the
current release (v14).

Given that (from the README), the "main" tags were intended for projects
that have not yet migrated to modules, adding a go.mod will not benefit
those consumers.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Now that the GoDep file is removed from the root, we can move this
module to use v4.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
merge code coverage files then report
@thaJeztah thaJeztah force-pushed the update_jwt branch 2 times, most recently from 4895140 to 4cb2949 Compare August 23, 2021 21:40
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@jhendrixMSFT jhendrixMSFT merged commit 4e2e1bb into Azure:master Aug 24, 2021
@jhendrixMSFT
Copy link
Member

Thanks for your help on this.

@thaJeztah thaJeztah deleted the update_jwt branch August 24, 2021 15:36
@thaJeztah
Copy link
Contributor Author

You're welcome! Thanks for review and merge!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants