Azure / go-ntlmssp

NTLM/Negotiate authentication over HTTP
MIT License
189 stars 67 forks source link

Test failure #40

Open opoplawski opened 1 year ago

opoplawski commented 1 year ago

Trying to build commit 754e69321358ada85ce213a4ec971d3e4d1bfdf7 on Fedora Rawhide I'm getting:

+ go-rpm-integration check -i github.com/Azure/go-ntlmssp -b /home/orion/fedora/golang-github-azure-ntlmssp/go-ntlmssp-754e69321358ada85ce213a4ec971d3e4d1bfdf7/_build/bin -s /home/orion/fedora/golang-github-azure-ntlmssp/go-ntlmssp-754e69321358ada85ce213a4ec971d3e4d1bfdf7/_build -V 0-0.10.20230516git754e693.fc39 -C 754e69321358ada85ce213a4ec971d3e4d1bfdf7 -p /home/orion/BUILDROOT/golang-github-azure-ntlmssp-0-0.10.20230516git754e693.fc39.x86_64 -g /usr/share/gocode -r '.*example.*'
Testing    in: /home/orion/fedora/golang-github-azure-ntlmssp/go-ntlmssp-754e69321358ada85ce213a4ec971d3e4d1bfdf7/_build/src
         PATH: /home/orion/fedora/golang-github-azure-ntlmssp/go-ntlmssp-754e69321358ada85ce213a4ec971d3e4d1bfdf7/_build/bin:/home/orion/.local/bin:/home/orion/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/sbin:/opt/local/rsi/idl/bin
       GOPATH: /home/orion/fedora/golang-github-azure-ntlmssp/go-ntlmssp-754e69321358ada85ce213a4ec971d3e4d1bfdf7/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags " -X github.com/Azure/go-ntlmssp/version.commit=754e69321358ada85ce213a4ec971d3e4d1bfdf7 -X github.com/Azure/go-ntlmssp/version=0 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  '"
      testing: github.com/Azure/go-ntlmssp
github.com/Azure/go-ntlmssp
# github.com/Azure/go-ntlmssp [github.com/Azure/go-ntlmssp.test]
./nlmp_test.go:52:21: assignment mismatch: 2 variables but GetDomain returns 3 values
FAIL    github.com/Azure/go-ntlmssp [build failed]

Looks like nlmp_test.go hasn't been updated to handle the 3 return values.

Hellseher commented 4 months ago

Hi, I've got the same during update package in Guix:

# github.com/Azure/go-ntlmssp [github.com/Azure/go-ntlmssp.test]
src/github.com/Azure/go-ntlmssp/nlmp_test.go:52:18: assignment mismatch: 2 variables but GetDomain returns 3 values
FAIL    github.com/Azure/go-ntlmssp [build failed]
FAIL

version: 20221128193559-754e69321358