From 9b70de21c7c0aa0e3db86d87c3169fb1769efeba Mon Sep 17 00:00:00 2001 From: Martin Wickham Date: Sun, 27 Nov 2022 17:23:22 -0600 Subject: [PATCH] Move data/ directory into src/ to fix stage 2 error from tests --- {data => src/data}/keep_directory_in_git.txt | 0 src/day01.zig | 2 +- src/day02.zig | 2 +- src/day03.zig | 2 +- src/day04.zig | 2 +- src/day05.zig | 2 +- src/day06.zig | 2 +- src/day07.zig | 2 +- src/day08.zig | 2 +- src/day09.zig | 2 +- src/day10.zig | 2 +- src/day11.zig | 2 +- src/day12.zig | 2 +- src/day13.zig | 2 +- src/day14.zig | 2 +- src/day15.zig | 2 +- src/day16.zig | 2 +- src/day17.zig | 2 +- src/day18.zig | 2 +- src/day19.zig | 2 +- src/day20.zig | 2 +- src/day21.zig | 2 +- src/day22.zig | 2 +- src/day23.zig | 2 +- src/day24.zig | 2 +- src/day25.zig | 2 +- template/hashes.bin | 6 +----- template/template.zig | 2 +- 28 files changed, 27 insertions(+), 31 deletions(-) rename {data => src/data}/keep_directory_in_git.txt (100%) diff --git a/data/keep_directory_in_git.txt b/src/data/keep_directory_in_git.txt similarity index 100% rename from data/keep_directory_in_git.txt rename to src/data/keep_directory_in_git.txt diff --git a/src/day01.zig b/src/day01.zig index e454915..e701172 100644 --- a/src/day01.zig +++ b/src/day01.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day01.txt"); +const data = @embedFile("data/day01.txt"); pub fn main() !void { diff --git a/src/day02.zig b/src/day02.zig index 979d0db..5337836 100644 --- a/src/day02.zig +++ b/src/day02.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day02.txt"); +const data = @embedFile("data/day02.txt"); pub fn main() !void { diff --git a/src/day03.zig b/src/day03.zig index fe63378..4f47566 100644 --- a/src/day03.zig +++ b/src/day03.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day03.txt"); +const data = @embedFile("data/day03.txt"); pub fn main() !void { diff --git a/src/day04.zig b/src/day04.zig index c9ab677..38310c4 100644 --- a/src/day04.zig +++ b/src/day04.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day04.txt"); +const data = @embedFile("data/day04.txt"); pub fn main() !void { diff --git a/src/day05.zig b/src/day05.zig index ce9f516..19a1e9f 100644 --- a/src/day05.zig +++ b/src/day05.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day05.txt"); +const data = @embedFile("data/day05.txt"); pub fn main() !void { diff --git a/src/day06.zig b/src/day06.zig index 2db2f2e..1a801ab 100644 --- a/src/day06.zig +++ b/src/day06.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day06.txt"); +const data = @embedFile("data/day06.txt"); pub fn main() !void { diff --git a/src/day07.zig b/src/day07.zig index 33c6a09..c8e53a4 100644 --- a/src/day07.zig +++ b/src/day07.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day07.txt"); +const data = @embedFile("data/day07.txt"); pub fn main() !void { diff --git a/src/day08.zig b/src/day08.zig index e02d43b..468e0f1 100644 --- a/src/day08.zig +++ b/src/day08.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day08.txt"); +const data = @embedFile("data/day08.txt"); pub fn main() !void { diff --git a/src/day09.zig b/src/day09.zig index 506abb3..b5bf4ea 100644 --- a/src/day09.zig +++ b/src/day09.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day09.txt"); +const data = @embedFile("data/day09.txt"); pub fn main() !void { diff --git a/src/day10.zig b/src/day10.zig index 26de46c..dfa1ac5 100644 --- a/src/day10.zig +++ b/src/day10.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day10.txt"); +const data = @embedFile("data/day10.txt"); pub fn main() !void { diff --git a/src/day11.zig b/src/day11.zig index bdc5dcc..a403f6c 100644 --- a/src/day11.zig +++ b/src/day11.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day11.txt"); +const data = @embedFile("data/day11.txt"); pub fn main() !void { diff --git a/src/day12.zig b/src/day12.zig index 8cce6f1..137a49a 100644 --- a/src/day12.zig +++ b/src/day12.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day12.txt"); +const data = @embedFile("data/day12.txt"); pub fn main() !void { diff --git a/src/day13.zig b/src/day13.zig index f040aa9..cce99a1 100644 --- a/src/day13.zig +++ b/src/day13.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day13.txt"); +const data = @embedFile("data/day13.txt"); pub fn main() !void { diff --git a/src/day14.zig b/src/day14.zig index 67321e1..6d72c95 100644 --- a/src/day14.zig +++ b/src/day14.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day14.txt"); +const data = @embedFile("data/day14.txt"); pub fn main() !void { diff --git a/src/day15.zig b/src/day15.zig index 87f69be..553095e 100644 --- a/src/day15.zig +++ b/src/day15.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day15.txt"); +const data = @embedFile("data/day15.txt"); pub fn main() !void { diff --git a/src/day16.zig b/src/day16.zig index 9d88df5..87c7651 100644 --- a/src/day16.zig +++ b/src/day16.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day16.txt"); +const data = @embedFile("data/day16.txt"); pub fn main() !void { diff --git a/src/day17.zig b/src/day17.zig index c13295f..691d886 100644 --- a/src/day17.zig +++ b/src/day17.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day17.txt"); +const data = @embedFile("data/day17.txt"); pub fn main() !void { diff --git a/src/day18.zig b/src/day18.zig index cb6c80a..cb3c484 100644 --- a/src/day18.zig +++ b/src/day18.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day18.txt"); +const data = @embedFile("data/day18.txt"); pub fn main() !void { diff --git a/src/day19.zig b/src/day19.zig index e1a6664..e96ddfd 100644 --- a/src/day19.zig +++ b/src/day19.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day19.txt"); +const data = @embedFile("data/day19.txt"); pub fn main() !void { diff --git a/src/day20.zig b/src/day20.zig index 09c608c..92f0725 100644 --- a/src/day20.zig +++ b/src/day20.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day20.txt"); +const data = @embedFile("data/day20.txt"); pub fn main() !void { diff --git a/src/day21.zig b/src/day21.zig index 8eaba73..3f3fe4e 100644 --- a/src/day21.zig +++ b/src/day21.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day21.txt"); +const data = @embedFile("data/day21.txt"); pub fn main() !void { diff --git a/src/day22.zig b/src/day22.zig index c385662..b80175e 100644 --- a/src/day22.zig +++ b/src/day22.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day22.txt"); +const data = @embedFile("data/day22.txt"); pub fn main() !void { diff --git a/src/day23.zig b/src/day23.zig index a006e00..615687b 100644 --- a/src/day23.zig +++ b/src/day23.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day23.txt"); +const data = @embedFile("data/day23.txt"); pub fn main() !void { diff --git a/src/day24.zig b/src/day24.zig index 5fe1477..444daed 100644 --- a/src/day24.zig +++ b/src/day24.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day24.txt"); +const data = @embedFile("data/day24.txt"); pub fn main() !void { diff --git a/src/day25.zig b/src/day25.zig index 3d653cc..0969a91 100644 --- a/src/day25.zig +++ b/src/day25.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day25.txt"); +const data = @embedFile("data/day25.txt"); pub fn main() !void { diff --git a/template/hashes.bin b/template/hashes.bin index 6fa6b9d..6efd6a5 100644 --- a/template/hashes.bin +++ b/template/hashes.bin @@ -1,5 +1 @@ -lgŵ<uZY1fsyQ>:Y죡c:ŝG2O&rs%cҨ}2u, - =z# /!D4&]w*q( -D+YW^s(4DM).PJouZ\u 6(A% yl 6J  K~O"-oȃH;3 s<%[:/b"YP *_qd%!\VgQ-4}?7 -AKs:vK,S"b_-!#J}PhG 77ѿχtM 6b -diĚ\Vy9`qdf^bo_.@` \ No newline at end of file +*3tg iQ[/X1cT7ȣCd`'sR&=R/^ĝ|hJ{-d{|ㆾ4^dzC)ٔ=,IぜO|\Sŧ!V73Z# @GX؍T#hb3Y*a1Ex)Se->;qhvCL;5+XI_f,\L>olvnC7j V|4R7L얝iCq [ &\l=Ǔ>&4RE RhX;"3k}=ӱQOrZF g Vѕy.!>?Ƿh=:: \ No newline at end of file diff --git a/template/template.zig b/template/template.zig index ba9fbdf..d37f47b 100644 --- a/template/template.zig +++ b/template/template.zig @@ -8,7 +8,7 @@ const BitSet = std.DynamicBitSet; const util = @import("util.zig"); const gpa = util.gpa; -const data = @embedFile("../data/day$.txt"); +const data = @embedFile("data/day$.txt"); pub fn main() !void {