@carsme:
Thanks for checking. I tried clearing the cache for both aur managers.
Then this is maybe pacman/ libalpm related as I'm on manjaro that still uses pacman 6.0.1.
Git Clone URL: | https://aur.archlinux.org/azure-kubelogin.git (read-only, click to copy) |
---|---|
Package Base: | azure-kubelogin |
Description: | A Kubernetes credential (exec) plugin implementing azure authentication |
Upstream URL: | https://github.com/Azure/kubelogin |
Licenses: | MIT |
Conflicts: | kubelogin |
Submitter: | cznk |
Maintainer: | None |
Last Packager: | carsme |
Votes: | 6 |
Popularity: | 0.52 |
First Submitted: | 2021-05-11 21:11 (UTC) |
Last Updated: | 2024-07-06 12:12 (UTC) |
@carsme:
Thanks for checking. I tried clearing the cache for both aur managers.
Then this is maybe pacman/ libalpm related as I'm on manjaro that still uses pacman 6.0.1.
@pschyma I cannot reproduce this, the shasum is valid for me. Can you try cleaning your build directory and trying again, probably rm -r ~/.cache/yay
or something like that.
The recent update doesn't build with yay or paru. It seems like the sha validation doesn't work as expected.
yay output:
==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:47:15 CEST)
==> Retrieving sources...
-> Cloning azure-kubelogin git repo...
Cloning into bare repository '[HOME]/.cache/yay/azure-kubelogin/azure-kubelogin'...
remote: Enumerating objects: 3551, done.
remote: Counting objects: 100% (1347/1347), done.
remote: Compressing objects: 100% (559/559), done.
remote: Total 3551 (delta 967), reused 1075 (delta 782), pack-reused 2204
Receiving objects: 100% (3551/3551), 2.34 MiB | 4.53 MiB/s, done.
Resolving deltas: 100% (2282/2282), done.
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
-> error downloading sources: [HOME]/.cache/yay/azure-kubelogin
context: exit status 1
:: (1/1) Parsing SRCINFO: azure-kubelogin
pub rsa4096 2024-01-16 [SC]
968479A1AFF927E37D1A566BB5690EEEBB952194
uid [ unknown] GitHub <noreply@github.com>
==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:47:17 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating azure-kubelogin git repo...
==> Validating source files with sha256sums...
azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
-> error making: azure-kubelogin-exit status 1
-> Failed to install the following packages. Manual intervention is required:
azure-kubelogin - exit status 1
paru output:
:: Downloading PKGBUILDs...
PKGBUILDs up to date
nothing new to review
fetching devel info...
==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:59:03 CEST)
==> Retrieving sources...
-> Updating azure-kubelogin git repo...
==> Validating source files with sha256sums...
azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'azure-kubelogin-0.1.2-1':
error: packages failed to build: azure-kubelogin-0.1.2-1
Works like a charm now, thank you!
@travisghansen @tongpu @mattelacchiato I've pushed a new pkgver where the problematic tests are ignored. Let me know if you still experience issues, thanks.
I get the same SIGSEGV, anything we can provide to get that corrected?
@carsme @mattelacchiato Replacing go test ./...
with go test
in check()
fixed the issue for me.
@mattelacchiato I'm afraid I can't replicate the failure, can you try building in a chroot and see if it fails there as well? Or try to investigate what it is in your environment that is the cause? Thanks.
Current update 0.1.0-2 -> 0.1.1-1
currently fails on my machine:
(removed local username with <LOCAL_USERNAME>
==> Starting check()...
ok github.com/Azure/kubelogin (cached)
? github.com/Azure/kubelogin/pkg/cmd [no test files]
? github.com/Azure/kubelogin/pkg/internal/env [no test files]
ok github.com/Azure/kubelogin/pkg/internal/converter (cached)
? github.com/Azure/kubelogin/pkg/internal/token/mock_token [no test files]
--- FAIL: TestAcquirePoPTokenByUsernamePassword (0.37s)
--- FAIL: TestAcquirePoPTokenByUsernamePassword/AcquirePoPTokenByUsernamePasswordVCR (0.15s)
msal_public_test.go:133: expected no error, but got: failed to create PoP token with username/password flow: problem getting user realm from authority: server response error:
Get "https://login.microsoftonline.com/common/UserRealm/<LOCAL_USERNAME>?api-version=1.0": requested interaction not found
FAIL
FAIL github.com/Azure/kubelogin/pkg/internal/pop 2.087s
ok github.com/Azure/kubelogin/pkg/internal/testutils (cached)
--- FAIL: TestROPCPoPTokenVCR (0.46s)
--- FAIL: TestROPCPoPTokenVCR/ROPCPoPTokenFromUsernamePasswordVCR (0.24s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x555f15498ddc]
goroutine 74 [running]:
testing.tRunner.func1.2({0x555f1564f360, 0x555f15b76e30})
testing/testing.go:1631 +0x24a
testing.tRunner.func1()
testing/testing.go:1634 +0x377
panic({0x555f1564f360?, 0x555f15b76e30?})
runtime/panic.go:770 +0x132
github.com/Azure/kubelogin/pkg/internal/token.TestROPCPoPTokenVCR.func1(0xc00025e000)
github.com/Azure/kubelogin/pkg/internal/token/ropc_test.go:215 +0x6dc
testing.tRunner(0xc00025e000, 0xc00029c040)
testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 119
testing/testing.go:1742 +0x390
FAIL github.com/Azure/kubelogin/pkg/internal/token 0.466s
ok github.com/Azure/kubelogin/pkg/token (cached)
FAIL
Now the key is expired 🙃
pub rsa2048 2017-08-16 [SC] [expired: 2024-01-16]
5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23
Pinned Comments
carsme commented on 2023-12-29 11:56 (UTC) (edited on 2023-12-29 14:59 (UTC) by carsme)
NOTE: If building the package fails due to missing PGP keys, like this:
you need to fetch the required PGP key: