Skip to content

feat: Pack IO options - #246

Merged
Pavel Zwerschke (pavelzw) merged 35 commits into
Quantco:mainfrom
wmiles-sgl:io-options
Mar 27, 2026
Merged

Pavel Zwerschke (pavelzw) merged 35 commits into
Quantco:mainfrom
wmiles-sgl:io-options

Conversation

@wmiles-sgl

Copy link
Copy Markdown
Contributor

Motivation

Add some additional options for pack output/unpack input, as discussed in #245.

Changes

  • Support '-' for stdout/stdin for pack/unpack
  • Add 'no-tar' option to pack that skips archiving and delivers output to a directory instead
  • If input to unpack is a directory, install directly from it

Notes

  • This is my first time working with rust; apologies if the implementation is non-idiomatic. Any feedback would be appreciated.
  • Documentation is not yet updated.
  • In the interests of code simplicity, I have not attempted to handle pack-to-stdout and verbose; this combination will probably do something unhelpful.
  • I'm uncertain how to implement a test case for the stdio features -- it will need to fork additional processes instead of directly making library calls.
  • In this implementation, '--no-tar' supersedes '--create-executable'. We could add an error if both are set.

@wmiles-sgl wmiles-sgl changed the title Pack IO options feat: Pack IO options Nov 27, 2025
@github-actions github-actions Bot added the enhancement New feature or request label Nov 27, 2025

@pavelzw Pavel Zwerschke (pavelzw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

some comments

Comment thread src/bin/pixi-pack.rs Resolved
Comment thread src/pack.rs Resolved
Comment thread src/pack.rs Resolved
Comment thread src/pack.rs Resolved
@wmiles-sgl

Copy link
Copy Markdown
Contributor Author

Sorry to bother, what am I missing to move this PR forward? Thanks!

@pavelzw

Copy link
Copy Markdown
Member

sorry for the delay, this pr slipped out of my inbox. i'll look into it next week!

@pavelzw Pavel Zwerschke (pavelzw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i pushed some small fixes to your pr, thanks for the effort!

Comment thread src/pack.rs Resolved
Comment thread src/pack.rs Resolved
Comment thread src/pack.rs Resolved
@pavelzw
Pavel Zwerschke (pavelzw) enabled auto-merge (squash) March 27, 2026 15:51
Instead of using #[cfg(target_os)] to pick activate.sh vs activate.bat,
derive the extension from the actual shell in UnpackOptions. This fixes
Windows CI where the test explicitly uses Bash shell.
@pavelzw
Pavel Zwerschke (pavelzw) merged commit 38520c1 into Quantco:main Mar 27, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants