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
When you push an artifact with an annotation containing a manifest title, it automatically generates a file with the manifest title name, even without --export-manifest <file>
For example:
annotation.json
{
"$manifest": {
"org.opencontainers.image.title": "My pretty title"
}
}
It creates a file with the name My pretty title in the current directory with the manifest content. Even if you specify to export the manifest with a specific name using --export-manifest <file>, it will generate the My pretty title file with the manifest, along with the requested exported file. Ex:
This will generate foo.json and My pretty title in the current directory
What did you expect to happen?
Expected command should not automatically export the manifest file with the $manifest["org.opencontainers.image.title"] without explicitly requesting to do so.
How can we reproduce it?
Generate an annotation file with $manifest and org.opencontainers.image.title specified, using annotation.json as example
What happened in your environment?
When you push an artifact with an annotation containing a manifest title, it automatically generates a file with the manifest title name, even without
--export-manifest <file>
For example:
annotation.json
Then when you push the artifact:
$ oras push --annotation-file annotation.json hi.txt:plain/text
It creates a file with the name
My pretty title
in the current directory with the manifest content. Even if you specify to export the manifest with a specific name using--export-manifest <file>
, it will generate theMy pretty title
file with the manifest, along with the requested exported file. Ex:$ oras push --annotation-file annotation.json --export-manifest foo.json hi.txt:plain/text
This will generate
foo.json
andMy pretty title
in the current directoryWhat did you expect to happen?
Expected command should not automatically export the manifest file with the
$manifest["org.opencontainers.image.title"]
without explicitly requesting to do so.How can we reproduce it?
Generate an annotation file with $manifest and
org.opencontainers.image.title
specified, usingannotation.json
as examplePush any artifact using this annotation
$ oras push --annotation-file annotation.json hi.txt:plain/text
This should create a file in the current directory named
hello world
What is the version of your ORAS CLI?
Using
oras
distributed in ArchLinux AUR: https://aur.archlinux.org/packages/orasWhat is your OS environment?
Arch Linux amd64
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: