Skip to content

Fix publish failure - #27

Open
cleeland wants to merge 3 commits into
masterfrom
fix-publish-failure
Open

cleeland wants to merge 3 commits into
masterfrom
fix-publish-failure

Conversation

@cleeland

@cleeland cleeland commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

This fixes an artifactory/split repo model publish failure that doesn't exist in the unitary model: the --publish command checks to see if the package is already in the current repo list--which, in split-repo model happens to be the download repo. The change here is for publish to check the content of the upload repo.

I think this solution is appropriate in this case. However, we might also consider adding a warning level check on the download repo as well, since for the artifactory repository design, a pre-existing presence of the same package on the download side might end up occluding a download of the package the user is trying to publish. Ideally, there'd be a way to figure out which of the constituent repositories was actually contributing the package, but AFAIK artifactory doesn't offer that feature.

Such a simple thing manifested in no tag, all assets being uploaded to
the same release ("v" with no number) and a weirdly-computed release name.
Retain download as the default, though.
This could fail on an artifactory repo setup where the download is a
virtual union repo and the upload is a constituent that doesn't
contain the package, but some other constituent repo does contain the
package.  Maybe this should be an option?
@cleeland
cleeland requested a review from stesla October 28, 2025 14:17

@stesla stesla left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I agree a warning would be a good idea.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants