Skip to content

pixi publish rejects channel:///... even though help says it is supported #6126

Closed

Description

@amirhosseindavoody

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Summary

pixi publish --help documents channel:///path/to/channel as a supported target URL for --target-channel (or --to).

However, running pixi publish with that scheme fails with:

Unsupported URL scheme 'channel'. Supported schemes: file://, s3://, quetz://, artifactory://, prefix://, http://, https://

This appears to be a documentation/implementation mismatch.

Environment

  • OS: SUSE Linux Enterprise Server 15 SP4
  • Kernel: Linux 5.14.21-150400.24.158-default x86_64
  • Pixi: 0.68.1

Evidence From Help Text

From pixi publish --help:

Supported target URLs (--target-channel / --to):
  - Local channel (with indexing): `channel:///path/to/channel`
...
Examples:
  channel:///path/to/local/channel file:///path/to/local/channel

Steps To Reproduce

  1. Prepare any package directory that pixi publish can build from.
  2. Run:
pixi publish --target-channel channel:///path/to/local/channel --path ./packages/example --force --skip-existing false

Actual Result

Command fails with:

Unsupported URL scheme 'channel'. Supported schemes: file://, s3://, quetz://, artifactory://, prefix://, http://, https://

Expected Result

One of the following should happen:

  1. channel:///... is accepted and works as documented, or
  2. Help text is updated to remove channel:///... if it is not actually supported.

Additional Notes

  • file:///... appears to be accepted according to the same error output and help text.
  • This likely impacts local-channel publish workflows that follow the documented channel:///... form.

Issue description

pixi publish rejects channel:///... even though help says it is supported

Expected behavior

channel:///... is accepted and works as documented

Activity

  1. added
    bug
    on May 15, 2026
  2. ruben-arts commented on May 15, 2026

    @ruben-arts
    Contributor

    Ah sorry I believe this is old documentation left behind from an inbetween version that was not merged.

    @hunger could you clean this up?

  3. hunger commented on May 15, 2026

    @hunger
    Contributor

    @amirhosseindavoody: pixi publish --target-channel file:///foo/bar will do waht you need. Or just pixi publish --target-channel /foo/bar.

    I hope you are happy with the updated docs.

  4. amirhosseindavoody commented on May 15, 2026

    @amirhosseindavoody
    Author

    I tried this command pixi publish --target-channel /foo/bar. Looks like it does not reindex the target-channel.

    I was interested in channel:///foo/bar instead of file:///foo/bar because of indexing behavior. It seems that pixi 0.68.1 still does not do indexing after publish using file schema.

    Image
  5. amirhosseindavoody commented on May 18, 2026

    @amirhosseindavoody
    Author

    @ruben-arts I still have an issue with indexing the local channel. My understanding is that after using publish command, it will automatically reindex the local channel. But that is not what I see when use pixi publish --target-channel /foo/bar.

    Should I open a new issue for that?

  6. kaiserls commented on Jun 15, 2026

    @kaiserls

    @amirhosseindavoody I was not able to reproduce this issue with pixi 0.70.2. The channel was correctly indexed. I guess it was solved in on of the last releases.

    Edit: I just encountered a case, where the indexing does not work: #6362 . Not sure if this is in any way related.

  7. amirhosseindavoody commented on Jun 25, 2026

    @amirhosseindavoody
    Author

    @amirhosseindavoody I was not able to reproduce this issue with pixi 0.70.2. The channel was correctly indexed. I guess it was solved in on of the last releases.

    Edit: I just encountered a case, where the indexing does not work: #6362 . Not sure if this is in any way related.

    I have the same setup where I source a channel in my pixi manifest and then publish to the same channel.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions