Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tooling to create a package tarball #14312

Open
Tracked by #14265
andrewrk opened this issue Jan 14, 2023 · 3 comments
Open
Tracked by #14265

add tooling to create a package tarball #14312

andrewrk opened this issue Jan 14, 2023 · 3 comments
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. proposal This issue suggests modifications. If it also has the "accepted" label then it is planned. zig build system std.Build, the build runner, `zig build` subcommand, package management
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Jan 14, 2023

Extracted from #14265.

This would have the following benefits:

Perhaps there could be some other linty checks that it would do by default, which would make people feel happy feelings when publishing a package.

However, there's kind of an odd downside here - this feature would not be necessary. By intention, any tarball generated by any service - even from any arbitrary commit - should work fine. The existence of this feature might mislead people into thinking that publishing a zig package is more complicated than it really is.

@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. proposal This issue suggests modifications. If it also has the "accepted" label then it is planned. labels Jan 14, 2023
@andrewrk andrewrk added this to the 0.12.0 milestone Jan 14, 2023
@andrewrk andrewrk added the zig build system std.Build, the build runner, `zig build` subcommand, package management label Jan 14, 2023
@andrewrk andrewrk mentioned this issue Jan 14, 2023
32 tasks
@thatoneguydownthere
Copy link

I was planning on creating a separate issue but found this issue and decided to post a comment here instead. I recently had a need to create a tar archive in a zig project and have implemented a feature in a locally cloned repo of ziglang where I integrated the creation of a ustar archive in std.tar. Would there be interest in me sending in a patch in the form of a pr?

@jcs090218
Copy link

I'm interested in this feature. It could benefit some unofficial centralized package managers.

@mattnite
Copy link
Contributor

Hey just leaving a link to boxzer. It doesn't exactly implement this idea. It allows you to have multiple packages in a single repo that depend on one another using local paths. You then run the packager with a URL argument, and it creates multiple tarball packages out of the repo. The dependencies are changed from local to url dependencies based off the URL. Note, only works on macos due to a zig stdlib bug in recursive file walking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. proposal This issue suggests modifications. If it also has the "accepted" label then it is planned. zig build system std.Build, the build runner, `zig build` subcommand, package management
Projects
Status: Proposals
Development

No branches or pull requests

4 participants