mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
latest zig, fix std.sort.sort -> std.mem.sort
This commit is contained in:
parent
037d5af9c2
commit
af4d62ab97
3 changed files with 8 additions and 5 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -166,11 +166,11 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1684930100,
|
||||
"narHash": "sha256-4Er+eDDOP5n0xZTRCzX6b3yXBELTQ4sL50DsoNyGTFs=",
|
||||
"lastModified": 1685189241,
|
||||
"narHash": "sha256-XgQ/Tz73zkJPcI6xKj2GKL21Rbw6gfQ0DSybziJlsVE=",
|
||||
"owner": "mitchellh",
|
||||
"repo": "zig-overlay",
|
||||
"rev": "e790ca67626dc23cbab19ab66e394ed1e9960046",
|
||||
"rev": "93206e0ae7ca779609d4a663d8e4d5bee3ae6fce",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -468,6 +468,9 @@ pub fn UserPassSessionAuth(comptime Lookup: type, comptime lockedPwLookups: bool
|
|||
return .AuthOK;
|
||||
} else {
|
||||
zap.debug("Auth: COKIE IS BAD!!!!: {s}\n", .{cookie.str});
|
||||
// this is not necessarily a bad thing. it could be a
|
||||
// stale cookie from a previous session. So let's check
|
||||
// if username and password are being sent and correct.
|
||||
}
|
||||
}
|
||||
} else |err| {
|
||||
|
|
|
@ -411,7 +411,7 @@ pub fn computePackageHashExcludingDirectories(
|
|||
}
|
||||
}
|
||||
|
||||
std.sort.sort(*HashedFile, all_files.items, {}, HashedFile.lessThan);
|
||||
std.mem.sort(*HashedFile, all_files.items, {}, HashedFile.lessThan);
|
||||
|
||||
var hasher = Manifest.Hash.init(.{});
|
||||
var any_failures = false;
|
||||
|
@ -469,7 +469,7 @@ pub fn computePackageHashForFileList(
|
|||
}
|
||||
}
|
||||
|
||||
std.sort.sort(*HashedFile, all_files.items, {}, HashedFile.lessThan);
|
||||
std.mem.sort(*HashedFile, all_files.items, {}, HashedFile.lessThan);
|
||||
|
||||
var hasher = Manifest.Hash.init(.{});
|
||||
var any_failures = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue