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

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 ready for review August 23, 2021 18:33
@jhendrixMSFT jhendrixMSFT self-requested a review August 23, 2021 18:37
autorest/adal/go.mod Outdated Show resolved Hide resolved
@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
azure-pipelines.yml Show resolved Hide resolved
azure-pipelines.yml Outdated Show resolved Hide resolved
azure-pipelines.yml Show resolved Hide resolved
thaJeztah and others added 5 commits August 23, 2021 23:35
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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 <github@gone.nl>
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 <github@gone.nl>
Now that the GoDep file is removed from the root, we can move this
module to use v4.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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 <github@gone.nl>
azure-pipelines.yml Outdated Show resolved Hide resolved
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants