Skip to content

fix(publish): keep path prefix of artifactory:// target URLs - #7275

Closed
pavelzw wants to merge 1 commit into
prefix-dev:mainfrom
pavelzw:fix-artifactory-publish-path
Closed

pavelzw wants to merge 1 commit into
prefix-dev:mainfrom
pavelzw:fix-artifactory-publish-path

Conversation

@pavelzw

@pavelzw pavelzw commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Problem

pixi publish --to artifactory://<server>/<repository> only uses the host of the target URL: upload_to_artifactory takes the last path segment as the repository name and then calls server_url.set_path(""), dropping everything else.

Artifactory instances that are served under a path prefix can therefore not be targeted. The most common case is JFrog Cloud, where repositories live below https://<org>.jfrog.io/artifactory/. With artifactory://org.jfrog.io/artifactory/my-repo pixi currently PUTs to https://org.jfrog.io/my-repo/<subdir>/<file>, which JFrog Cloud answers with a 404.

Fix

  • Add split_artifactory_url, which takes the last path segment as the repository and keeps the preceding path (with a trailing slash) as part of the server URL. rattler_upload then joins <repository>/<subdir>/<filename> onto it as before.
  • artifactory://server/<repository> without a prefix keeps working unchanged.
  • Document the artifactory://server/<prefix>/<repository> form in the CLI help, the generated CLI docs and the docs extender.
  • Unit tests for the URL splitting.

Note: pixi upload artifactory --url https://org.jfrog.io/artifactory/ --channel my-repo already works, since it takes the full server URL. This PR brings pixi publish in line with it.

@pavelzw
pavelzw marked this pull request as ready for review October 28, 2026 13:03
@pavelzw
pavelzw enabled auto-merge (squash) October 28, 2026 13:03
@pavelzw
pavelzw disabled auto-merge October 28, 2026 13:04
@pavelzw

pavelzw commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

superseded by #7388

@pavelzw pavelzw closed this Oct 28, 2026
@pavelzw
pavelzw deleted the fix-artifactory-publish-path branch October 28, 2026 13:05
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.

1 participant