mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 08:55:36 +00:00
move some package management related source files around
This commit is contained in:
parent
7bae6d9064
commit
6d84caf727
@ -1,7 +1,7 @@
|
|||||||
pub const Module = @import("Package/Module.zig");
|
pub const Module = @import("Package/Module.zig");
|
||||||
pub const Fetch = @import("Package/Fetch.zig");
|
pub const Fetch = @import("Package/Fetch.zig");
|
||||||
pub const build_zig_basename = "build.zig";
|
pub const build_zig_basename = "build.zig";
|
||||||
pub const Manifest = @import("Manifest.zig");
|
pub const Manifest = @import("Package/Manifest.zig");
|
||||||
|
|
||||||
pub const Path = struct {
|
pub const Path = struct {
|
||||||
root_dir: Cache.Directory,
|
root_dir: Cache.Directory,
|
||||||
|
|||||||
@ -1449,9 +1449,9 @@ const Allocator = std.mem.Allocator;
|
|||||||
const Cache = std.Build.Cache;
|
const Cache = std.Build.Cache;
|
||||||
const ThreadPool = std.Thread.Pool;
|
const ThreadPool = std.Thread.Pool;
|
||||||
const WaitGroup = std.Thread.WaitGroup;
|
const WaitGroup = std.Thread.WaitGroup;
|
||||||
const Manifest = @import("../Manifest.zig");
|
|
||||||
const Fetch = @This();
|
const Fetch = @This();
|
||||||
const main = @import("../main.zig");
|
const main = @import("../main.zig");
|
||||||
const git = @import("../git.zig");
|
const git = @import("Fetch/git.zig");
|
||||||
const Package = @import("../Package.zig");
|
const Package = @import("../Package.zig");
|
||||||
|
const Manifest = Package.Manifest;
|
||||||
const ErrorBundle = std.zig.ErrorBundle;
|
const ErrorBundle = std.zig.ErrorBundle;
|
||||||
|
|||||||
@ -11,8 +11,6 @@ const Allocator = mem.Allocator;
|
|||||||
const Sha1 = std.crypto.hash.Sha1;
|
const Sha1 = std.crypto.hash.Sha1;
|
||||||
const assert = std.debug.assert;
|
const assert = std.debug.assert;
|
||||||
|
|
||||||
const ProgressReader = @import("Package.zig").ProgressReader;
|
|
||||||
|
|
||||||
pub const oid_length = Sha1.digest_length;
|
pub const oid_length = Sha1.digest_length;
|
||||||
pub const fmt_oid_length = 2 * oid_length;
|
pub const fmt_oid_length = 2 * oid_length;
|
||||||
/// The ID of a Git object (an SHA-1 hash).
|
/// The ID of a Git object (an SHA-1 hash).
|
||||||
Loading…
x
Reference in New Issue
Block a user