From d97b26a586c3d7e9c05c1684c9c05fcd4fbe166f Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 7 Aug 2024 22:05:15 +0300 Subject: [PATCH] fix compiling when target libc is given --- flake.lock | 6 +++--- flake.nix | 2 +- src/artifacts.zig | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index f5f3ef5..830f54e 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1722221733, - "narHash": "sha256-sga9SrrPb+pQJxG1ttJfMPheZvDOxApFfwXCFO0H9xw=", + "lastModified": 1722869614, + "narHash": "sha256-7ojM1KSk3mzutD7SkrdSflHXEujPvW1u7QuqWoTLXQU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "12bf09802d77264e441f48e25459c10c93eada2e", + "rev": "883180e6550c1723395a3a342f830bfc5c371f6b", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index ad70a24..49e28c5 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,7 @@ outputs = { self, nixpkgs }: let - version = builtins.substring 0 8 self.lastModifiedDate; + version = self.lastModifiedDate; pkgs = nixpkgs.legacyPackages.x86_64-linux; in { diff --git a/src/artifacts.zig b/src/artifacts.zig index 527f0a8..04710f4 100644 --- a/src/artifacts.zig +++ b/src/artifacts.zig @@ -66,7 +66,7 @@ pub fn parseDateTime(datetime: []const u8) ?f64 { const datetime_z = allocator.dupeZ(u8, datetime) catch return null; var tm: time_h.tm = .{}; - const s = time_h.strptime(datetime_z, "%FT%H:%M:%S.", &tm); + const s = time_h.strptime(datetime_z, "%Y-%m-%dT%H:%M:%S.", &tm); if (s == null) { return null; } @@ -342,7 +342,6 @@ fn fetch(self: *ArtifactsAPI, method: std.http.Method, path: []const u8, payload const response_body = response_storage.items; if (result.status != .ok) { - std.log.debug("Request {} {s} failed with code {}: {s}", .{method, path, result.status, response_body}); return ArtifactsFetchResult{ .arena = arena, .status = result.status