-
Notifications
You must be signed in to change notification settings - Fork 363
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
v3.4.3 Broken due to dependancy Update #381
Comments
I had to downgrade to : go get github.com/Azure/[email protected] to get my project to build. Added a comment to my go.mod letting me know not to upgrade: require (
// this version works - newer commits have breaking changes - do not update
// github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
...
) |
Thank you for opening an issue @speatzle. Did you run Lines 1 to 9 in a3dcdda
The build only failed when I manually updated the dependencies: C:\Users\nevo\IdeaProjects\go-ldap>go get -v -u ./...
go: downloading github.com/Azure/go-ntlmssp v0.0.0-20220621081337-cb9428e4ac1e
go: downloading golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
go: upgraded github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e => v0.0.0-20220621081337-cb9428e4ac1e
go: upgraded golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 => v0.0.0-20220525230936-793ad666bf5e
C:\Users\nevo\IdeaProjects\go-ldap>go test -v ./...
# github.com/go-ldap/ldap [github.com/go-ldap/ldap.test]
.\bind.go:521:96: not enough arguments in call to ntlmssp.ProcessChallenge
have ([]byte, string, string)
want ([]byte, string, string, bool)
FAIL github.com/go-ldap/ldap [build failed] Nevertheless, I hope the devs at Azure/go-ntlmssp take care of it. In case if they don't revert the change and all new releases stop working and to save others the frustration, we can add the dependencies with a working version to the repository and fix the latest release.. but older releases would still be affected when trying to update the dependencies. If you're having trouble building your project: Ensure your
If this is not the case, try the following steps to get it working again:
C:\Users\nevo\IdeaProjects\go-ldap>git checkout HEAD -- go.mod go.sum
C:\Users\nevo\IdeaProjects\go-ldap>go clean -modcache
C:\Users\nevo\IdeaProjects\go-ldap>go mod download
C:\Users\nevo\IdeaProjects\go-ldap>go test ./...
ok ok github.com/go-ldap/ldap 9.452s |
Our CI Pipeline automatically ran and did the |
Hi @speatzle Could we fix this? based on the requirements asked by go-ntlmssp. I think adding new bool param is just a simple change here right? |
IMO https://github.com/Azure/go-ntlmssp should revert Azure/go-ntlmssp#32 this would ensure that all old releases of go-ldap continue to work and would allow for breaking changes down the line without affecting go-ldap and other downstream projects. go-ldap could then adopt the new function signature of Azure/go-ntlmssp#32 in a new release |
To clarify for both this issue and the PR over at Azure/go-ntlmssp#34, already released versions of go-ldap are still working unless you manually force an dependency update using
|
For those not able to build in CI Pipeline add a flag -skipDepUpdate=true |
Thanks to @speatzle and @iamcaje-psh for identifying the root cause of the problem. Instead of downgrading using @iamcaje-psh 's workaround, I added the following to my
If Azure/go-ntlmssp#34 gets merged as the next version, then the aggressive |
It is still unclear whether the PR at Azure/go-ntlmssp will be merged or not. I say we give them a week to decide, otherwise we might opt for vendoring or adopting their breaking change. |
see go-ldap/ldap#381 for more information
see go-ldap/ldap#381 for more information
It seems that v3.4.3 (and probably most other releases) are broken.
The Release fails to build because of a breaking change in https://github.com/Azure/go-ntlmssp (
v0.0.0-20220621081337-cb9428e4ac1e
)They Merged this PR Azure/go-ntlmssp#32 in Azure/go-ntlmssp@cb9428e
That PR changed the function signature of ntlmssp.ProcessChallenge to have an additional bool causing the following build failure:
https://github.com/Azure/go-ntlmssp does apparently not tag releases. Which is why it gets upgraded even tho it had a breaking change
The text was updated successfully, but these errors were encountered: