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

package manager: zig fetch --save <url> overwrites .lazy field #19725

Closed
Tracked by #8
slimsag opened this issue Apr 21, 2024 · 0 comments
Closed
Tracked by #8

package manager: zig fetch --save <url> overwrites .lazy field #19725

slimsag opened this issue Apr 21, 2024 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness. zig build system std.Build, the build runner, `zig build` subcommand, package management
Milestone

Comments

@slimsag
Copy link
Contributor

slimsag commented Apr 21, 2024

Zig Version

0.12.0-dev.3180+83e578a18

Steps to Reproduce and Observed Behavior

With a build.zig.zon file which contains a lazy dependency like:

    .dependencies = .{
        .glfw = .{
            .url = "https://pkg.machengine.org/glfw/8f7ca982913c0ab64df44d79d6ad2fb592e5ec39.tar.gz",
            .hash = "122085745c053e68fea3772c7239c7c87bcc7f042fa3189592b30e0e39cbb9603d79",
            .lazy = true,
        },
    },
zig fetch --save https://pkg.machengine.org/glfw/98b4bca1542156dcedc6ab87b365a7ac61d1b77b.tar.gz

will remove the .lazy field:

image

Expected Behavior

The .lazy field should remain in place, only the .url and .hash fields should be overwritten.

@slimsag slimsag added the bug Observed behavior contradicts documented or intended behavior label Apr 21, 2024
@Vexu Vexu added frontend Tokenization, parsing, AstGen, Sema, and Liveness. zig build system std.Build, the build runner, `zig build` subcommand, package management labels Apr 22, 2024
@Vexu Vexu added this to the 0.13.0 milestone Apr 22, 2024
DivergentClouds pushed a commit to DivergentClouds/zig that referenced this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness. zig build system std.Build, the build runner, `zig build` subcommand, package management
Projects
None yet
Development

No branches or pull requests

2 participants