Skip to content

Add http.Request to doAuth to use with challenge.SetHeaders #1456

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eclipseo
Copy link

Newer challenge.SetHeaders takes two parameters, r *http.Request and
w http.ResponseWriter.
See commit distribution/distribution@f730f3a

Signed-off-by: Robert-André Mauchin [email protected]

You will need to bump github.com/docker/distribution vendoring if you wanna use this. In Fedora we unbundle all the dependencies, so we need to work with the latest version.

@docker-jenkins
Copy link

Can one of the admins verify this patch?

@justincormack
Copy link
Contributor

You need to bump the vendoring here as we use vendoring in this repo, regardless of whether you use the vendoring.

@eclipseo
Copy link
Author

Might need some help with that, running ~/go/bin/vndr github.com/docker/distribution removes tons of vendor files, including github.com/docker/distribution and I don't know why. I've never used that tool before so maybe I am doing something wrong.

@eclipseo
Copy link
Author

vndr only works correctly if the package is located in the GOPATH, a caveat not mentioned on the README.

@justincormack
Copy link
Contributor

Oh yes, sorry, vndr assumes you do that. We should switch to new style modules.

Looks like the new version of distribution needs github.com/opencontainers/image-spec adding to the vendoring too, from the CircleCI error.

Robert-André Mauchin added 3 commits May 14, 2019 17:51
Newer challenge.SetHeaders takes two parameters, r *http.Request and
w http.ResponseWriter.
See commit distribution/distribution@f730f3a

Signed-off-by: Robert-André Mauchin <[email protected]>
Signed-off-by: Robert-André Mauchin <[email protected]>
@eclipseo eclipseo force-pushed the fix_for_newer_auth branch from 6164a1b to 32289a1 Compare May 14, 2019 15:52
@justincormack
Copy link
Contributor

cc @cyli @endophage

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.

4 participants