- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Hello
I investigated about this issue and I would like to inform you that you can get the current latest version in source account by checking defaultDisplayVersion in the list-package-versions command [1] output . Moreover you can also get the published time from the describe-package-version command output , for complete reference please check [2] .
As suggested, you need to update the logic accordingly to either sort the package versions by published time and then deploy or opt to deploy the version with latest tag at the end, after all other version are uploaded .
Reference link : [1]:https://docs.aws.amazon.com/cli/latest/reference/codeartifact/list-package-versions.html [2]: https://docs.aws.amazon.com/cli/latest/reference/codeartifact/describe-package-version.html
Hello!
Thanks for the information about the logic of getting the latest package version in order. I am already able to do this in my script. Also, I even tried publishing the specific package version (e.g. 1.0.8) manually in CodeArtifact but every time "latest" flag is getting marked on "1.0.9" version. In my opinion, I feel like this is a flag marking bug.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 4 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
I think this is because you're using
sort -V
so the versions are now being published "in order", and 1.0.9 is the highest version. If you want to keep the version order in the source repository, drop the -V option to sort (and potentially also use the --sort-by PUBLISHED_TIME option to list-package-versions as well, not sure exactly)."1.0.9" is not the highest number, "1.0.11" is the highest number, and after dropping "sort -V" I tried listing down the all the package verions, I don't see any meta info to get the "PUBLISHED_TIME" field. refere below snippet for the same. https://we.tl/t-lDXL3fXk4B Also the real problem here is, even If I try to perform a manual upload of "1.0.8" version, the uploaded version is not getting "latest" flag. twine upload --repository codeartifact abc-1.0.8-py3-none-any.whl