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": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722221733,
|
"lastModified": 1722869614,
|
||||||
"narHash": "sha256-sga9SrrPb+pQJxG1ttJfMPheZvDOxApFfwXCFO0H9xw=",
|
"narHash": "sha256-7ojM1KSk3mzutD7SkrdSflHXEujPvW1u7QuqWoTLXQU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "12bf09802d77264e441f48e25459c10c93eada2e",
|
"rev": "883180e6550c1723395a3a342f830bfc5c371f6b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
version = builtins.substring 0 8 self.lastModifiedDate;
|
version = self.lastModifiedDate;
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ pub fn parseDateTime(datetime: []const u8) ?f64 {
|
|||||||
const datetime_z = allocator.dupeZ(u8, datetime) catch return null;
|
const datetime_z = allocator.dupeZ(u8, datetime) catch return null;
|
||||||
|
|
||||||
var tm: time_h.tm = .{};
|
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) {
|
if (s == null) {
|
||||||
return 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;
|
const response_body = response_storage.items;
|
||||||
|
|
||||||
if (result.status != .ok) {
|
if (result.status != .ok) {
|
||||||
std.log.debug("Request {} {s} failed with code {}: {s}", .{method, path, result.status, response_body});
|
|
||||||
return ArtifactsFetchResult{
|
return ArtifactsFetchResult{
|
||||||
.arena = arena,
|
.arena = arena,
|
||||||
.status = result.status
|
.status = result.status
|
||||||
|
Loading…
Reference in New Issue
Block a user