fix compiling when target libc is given
This commit is contained in:
parent
7d91521083
commit
d97b26a586
6
flake.lock
generated
6
flake.lock
generated
@ -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": {
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user