-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Milestone
Description
What happened in your environment?
I am pushing to my registry without logging in, the error returned suggested nothing wrong with login.
> oras push $REGISTRY/test:v0.1 $FILE
panic: sync/atomic: compare and swap of inconsistently typed value into Value
goroutine 44 [running]:
sync/atomic.(*Value).CompareAndSwap(0xc000210260, {0x0, 0x0}, {0x9767e0, 0xc000336c80})
/home/azureuser/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/sync/atomic/value.go:174 +0x150
oras.land/oras-go/v2/internal/syncutil.Go[...].func1.func2()
/home/azureuser/go/pkg/mod/oras.land/oras-go/v2@v2.5.1-0.20250221033735-cb6d75be7dd4/internal/syncutil/limit.go:86 +0xe6
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/azureuser/go/pkg/mod/golang.org/x/sync@v0.13.0/errgroup/errgroup.go:79 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 23
/home/azureuser/go/pkg/mod/golang.org/x/sync@v0.13.0/errgroup/errgroup.go:76 +0x93
What did you expect to happen?
Should show
- Progress of what has been uploaded
- Error code returned by the registry of the unauthenticated request.
How can we reproduce it?
- Logout your registry.
- Run
oras push
on the logged-out registry .
What is the version of your ORAS CLI?
I build from main branch
✗ oras version
Version: 1.3.0-beta.2+unreleased
Go version: go1.24.0
OS/Arch: linux/amd64
Git commit: c257deee176ea66d92bbc19769c87ff6cf2377fa
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?
- Yes, I am willing to fix it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists