Skip to content

Commit 586bc55

Browse files
committed
use zig fetch
1 parent 2500da2 commit 586bc55

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

assets/build.zig.zon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
.name = .main,
33
.version = "0.0.0",
44
.fingerprint = 0xffffffffffffffff,
5-
.dependencies = .{
6-
.firefly = .{
7-
.url = "https://github.com/firefly-zero/firefly-zig/archive/refs/tags/0.2.1.tar.gz",
8-
.hash = "12209939ad816c105db6295889ea1d2aab49e975d15d82c10fdb0daa94781885f3a0",
9-
},
10-
},
5+
.dependencies = .{},
116
.paths = .{"src"},
127
}

src/commands/new.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ fn new_zig(name: &str) -> Result<()> {
143143
c.copy_asset(&["src", "main.zig"], "main.zig")?;
144144
let fingerprint = format!("0xbf28cd64{:x}", rand::random::<u32>());
145145
c.replace(&["build.zig.zon"], "0xffffffffffffffff", &fingerprint)?;
146+
let url = "https://github.com/firefly-zero/firefly-zig/archive/refs/tags/0.2.1.tar.gz";
147+
c.run(&["zig", "fetch", "--save=firefly", url])?;
146148
Ok(())
147149
}
148150

0 commit comments

Comments
 (0)