You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Original exception is swallowed when attach command's user has not correct permissions #1695
Hi,
I have following command and when user I am using does not have correct permissions at Harbor, it returns 401.
Unfortunatelly I was only able to get this information during debugging session, not from console output.
Thank you
Ivos
Code: 401
Message: unauthorized to access repository: personal-ivo_smid/gitlab-commithook-settings, action: push: unauthorized to access repository: personal-ivo_smid/gitlab-commithook-settings, action: push
and console output
What did you expect to happen?
No response
How can we reproduce it?
command to run (I assume that not all flags are necessary)
console output is Note: Once it happened, that I was able to get error message not panic.
panic: sync/atomic: compare and swap of inconsistently typed value into Value
goroutine 68 [running]:
sync/atomic.(*Value).CompareAndSwap(0xc000430150, {0x0, 0x0}, {0x1271e60, 0xc0004b43f0})
C:/Users/IvoŠmíd/go/pkg/mod/golang.org/[email protected]/src/sync/atomic/value.go:174 +0x30a
oras.land/oras-go/v2/internal/syncutil.Go[...].func1.1()
C:/Users/IvoŠmíd/go/pkg/mod/oras.land/oras-go/[email protected]/internal/syncutil/limit.go:86 +0x1ce
golang.org/x/sync/errgroup.(*Group).Go.func1()
C:/Users/IvoŠmíd/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:79 +0xa9
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 38
C:/Users/IvoŠmíd/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:76 +0xe8
What is the version of your ORAS CLI?
$ docker run ghcr.io/oras-project/oras:main version
Version: 1.3.0-beta.2+unreleased
Go version: go1.24.0
OS/Arch: linux/amd64
Git commit: 6f04cf05b29fa8eb7dd0cc0b636d45fa716911d1
Git tree state: clean
@bedla Thanks for opening the issue. Yes, this has been fixed in oras-go, and we will update oras soon to include the fix. The fix is planned to be out with the next release v1.3.0-beta.3.
Activity
bedla commentedon Apr 18, 2025
I found out that it is fixed in oras-project/oras-go#921
Related issues are oras-project/oras-go#916 and oras-project/oras-go#908
I assume that when latest oras-go will fix this.
Wwwsylvia commentedon Apr 23, 2025
@bedla Thanks for opening the issue. Yes, this has been fixed in
oras-go, and we will update oras soon to include the fix. The fix is planned to be out with the next releasev1.3.0-beta.3.Wwwsylvia commentedon Apr 23, 2025
Duplicate of #1659
FeynmanZhou commentedon Apr 23, 2025
@Wwwsylvia We could remove the triage label if the issue has been responded with clear plan.