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

build.zig.zon example broken #24

Open
marler8997 opened this issue Jan 24, 2024 · 0 comments
Open

build.zig.zon example broken #24

marler8997 opened this issue Jan 24, 2024 · 0 comments

Comments

@marler8997
Copy link

By referencing master the archive will change every time new commits are pushed to master in this repo meaning that if someone added that to their build.zig.zon file the dependency (and their corresponding hash) would become out of sync. I'd recommend the example showing how to pin to a specific sha like this:

.dependencies = .{
    .string = .{
        .url = "https://github.com/JakubSzark/zig-string/archive/PUT_COMMIT_SHA_HERE.tar.gz",
        //the correct hash will be suggested by zig
    }
}
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

No branches or pull requests

1 participant