aboutsummaryrefslogtreecommitdiff
path: root/src/Package/Fetch/git.zig
AgeCommit message (Collapse)Author
5 daysupdate remaining calls to std.Io.Threaded.initAndrew Kelley
5 dayscompiler: fix test-unit compilation failuresAndrew Kelley
5 daysstd: rename other Dir "make" functions to "create"Andrew Kelley
5 daysstd: rename makeDir to createDir for consistency with createFileAndrew Kelley
5 dayscompiler: fix most compilation errors from std.fs changesAndrew Kelley
5 dayscompiler: update various code to new fs APIAndrew Kelley
5 daysstd.tar: update fs API calls to take io argumentAndrew Kelley
5 daysupdate makeDir() sites to specify permissionsAndrew Kelley
5 daysupdate all readFileAlloc() to accept Io instanceAndrew Kelley
5 daysupdate all rename() to rename(io)Andrew Kelley
5 daysupdate all openDir() sites to accept io instanceAndrew Kelley
5 daysupdate all std.fs.cwd() to std.Io.Dir.cwd()Andrew Kelley
5 daysupdate all occurrences of openFile to receive an io instanceAndrew Kelley
5 daysupdate all occurrences of std.fs.Dir to std.Io.DirAndrew Kelley
5 daysupdate all occurrences of std.fs.File to std.Io.FileAndrew Kelley
5 daysupdate all occurrences of close() to close(io)Andrew Kelley
2025-11-20update deprecated ArrayListUnmanaged usage (#25958)Benjamin Jurk
2025-10-29compiler: upgrade unit tests to new APIAndrew Kelley
2025-08-30rework std.Io.Writer.Allocating to support runtime-known alignmentAndrew Kelley
Also, breaking API changes to: * std.fs.Dir.readFileAlloc * std.fs.Dir.readFileAllocOptions
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-08Fetch.git: fix FetchStream packet readingIan Johnson
Progress towards #24732
2025-08-08Fetch.git: replace a toss with discardAllAndrew Kelley
toss is only valid following a peek.
2025-08-07Fetch: fix FetchStream logicAndrew Kelley
2025-08-07Fetch: handle compressed git+httpAndrew Kelley
2025-08-07fetch: avoid copying ResourceAndrew Kelley
2025-08-07fetch: update for new http APIAndrew Kelley
it's not quite finished because I need to make it not copy the Resource
2025-08-04std.compress.flate.Decompress: return correct size for unbuffered decompressionIan Johnson
Closes #24686 As a bonus, this commit also makes the `git.zig` "testing `main`" compile again.
2025-07-31fetch: More Git fixesIan Johnson
2025-07-31fetch: remove checksum logic and fix new I/O API bugsAndrew Kelley
Thanks Ian Johnson for finding these
2025-07-31fetch: update API usageAndrew Kelley
2025-07-31compiler: fix unit test compile errorsAndrew Kelley
sorry, zip file creation has regressed because std lib no longer has a deflate compression implementation
2025-07-31compiler: update to new flate APIAndrew Kelley
2025-07-31fetch: remove calls to fsyncAndrew Kelley
fsync blocks until the contents have been actually written to disk, which would be useful if we didn't want to report success until having achieved durability. But the OS will ensure coherency; i.e. if one process writes stuff without calling fsync, then another process reads that stuff, the writes will be seen even if they didn't get flushed to disk yet. Since this code deals with ephemeral cache data, it's not worth trying to achieve this kind of durability guarantee. This is consistent with all the other tooling on the system. Certainly, if we wanted to change our stance on this, it would not be something that affects only the git fetching logic.
2025-07-25std: rework zstd for new I/O APIAndrew Kelley
This passes tests but it doesn't provide as big a window size as is required to decompress larger streams. The next commit in this branch will work towards that, without introducing an additional buffer.
2025-07-07std.io.Writer.printValue: rework logicAndrew Kelley
Alignment and fill options only apply to numbers. Rework the implementation to mainly branch on the format string rather than the type information. This is more straightforward to maintain and more straightforward for comptime evaluation. Enums support being printed as decimal, hexadecimal, octal, and binary. `formatInteger` is another possible format method that is unconditionally called when the value type is struct and one of the integer-printing format specifiers are used.
2025-07-07std.fmt: fully remove format string from format methodsAndrew Kelley
Introduces `std.fmt.alt` which is a helper for calling alternate format methods besides one named "format".
2025-07-07compiler: fix a bunch of format stringsAndrew Kelley
2025-07-07update compiler source to new APIsAndrew Kelley
2025-07-07std.fmt: breaking API changesAndrew Kelley
added adapter to AnyWriter and GenericWriter to help bridge the gap between old and new API make std.testing.expectFmt work at compile-time std.fmt no longer has a dependency on std.unicode. Formatted printing was never properly unicode-aware. Now it no longer pretends to be. Breakage/deprecations: * std.fs.File.reader -> std.fs.File.deprecatedReader * std.fs.File.writer -> std.fs.File.deprecatedWriter * std.io.GenericReader -> std.io.Reader * std.io.GenericWriter -> std.io.Writer * std.io.AnyReader -> std.io.Reader * std.io.AnyWriter -> std.io.Writer * std.fmt.format -> std.fmt.deprecatedFormat * std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape * std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape * std.fmt.fmtSliceHexLower -> {x} * std.fmt.fmtSliceHexUpper -> {X} * std.fmt.fmtIntSizeDec -> {B} * std.fmt.fmtIntSizeBin -> {Bi} * std.fmt.fmtDuration -> {D} * std.fmt.fmtDurationSigned -> {D} * {} -> {f} when there is a format method * format method signature - anytype -> *std.io.Writer - inferred error set -> error{WriteFailed} - options -> (deleted) * std.fmt.Formatted - now takes context type explicitly - no fmt string
2025-07-07std.io: deprecated Reader/Writer; introduce new APIAndrew Kelley
2025-05-13std.meta.intToEnum -> std.enums.fromIntwooster0
Also use an optional as the return type instead of an error code.
2025-04-03update compiler usage of DoublyLinkedList APIAndrew Kelley
2024-12-13zig fetch: support SHA-256 Git repositoriesIan Johnson
Closes #21888
2024-12-13Remove copy of `HashedWriter`Ian Johnson
It was added to the standard library in #18733.
2024-11-19zig fetch: handle redirects for Git packagesIan Johnson
Closes #21976
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-04-10Uri: propagate per-component encodingJacob Young
This allows `std.Uri.resolve_inplace` to properly preserve the fact that `new` is already escaped but `base` may not be. I originally tried just moving `raw_uri` around, but it made uri resolution unmanagably complicated, so I instead added per-component information to `Uri` which allows extra allocations to be avoided when constructing uris with components from different sources, and in some cases, deferring the work all the way to when the uri is printed, where an allocator may not even be needed. Closes #19587
2024-04-09fetch.git: collect file create diagnostic errorsIgor Anić
On case insensitive file systems, don't overwrite files with same name in different casing. Add diagnostic error so caller could decide what to do.
2024-03-11package: remove git fetch zlib lookahead fixIgor Anić
My first zlib implementation broke git fetch because it introduce [lookahead](https://github.com/ziglang/zig/issues/18967). That resulted in workarounds [1](https://github.com/ziglang/zig/commit/80f3ef6e14a1213d1c3b31d515870afb43cc9379) [2](https://github.com/ziglang/zig/commit/d00faa2407cdeaa058da62f2d95f64f9e7ed6a09) After [fixing](https://github.com/ziglang/zig/pull/19163) lookahead in zlib decompressor this fixes are no longer necessary.
2024-02-23git fetching: fix redirect handlingAndrew Kelley
I mistakenly thought this was dead code in an earlier commit in this branch. This commit restores the proper behavior.