fix: repair master build after conflicting merges #96
Reference in New Issue
Block a user
Delete Branch "benvin/fix-master-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
masterdoes not compile. Three PRs that each built individually combined badly:fetchBearerTokento return(string, time.Duration, error)and addedcachedBearerToken(which hashes the challenge viasha256Hash).sha256Hashhelper and itscrypto/sha256/encoding/heximports.headUpstream, which callsfetchBearerTokenexpecting two return values.Result on
master:internal/proxy/engine.gofails to build (assignment mismatch: 2 variables but fetchBearerToken returns 3 values;undefined: sha256Hash).Changes
sha256Hashhelper and itscrypto/sha256+encoding/heximports.headUpstream401 path to handlefetchBearerTokens three return values.Validation
go build ./...,go vet, andmake e2eall pass.Should merge before the other in-flight branches so they rebase onto a compiling
master.