Commit Graph

8 Commits

Author SHA1 Message Date
Tianon Gravi 7720612406 Update go-git (to fix failing test)
One of the repositories we test against renamed their upstream branch, which is failing the tests (but cloning it correctly is fixed in newer go-git).
2025-08-18 10:05:24 -07:00
Tianon Gravi 695db42956 Remove `go mod verify`
(it verifies that the downloaded modules have not been tampered with since `go mod download`, which we do literally just prior so it is verifying nothing)
2025-05-29 16:13:30 -07:00
Tianon Gravi 60ee93caf8 Simplify `pkg/dockerfile` interface by ditching pointer
This means slightly more typing in "zero-value" cases (`nil` vs `dockerfile.Metadata{}`), but the tradeoff is that it's simpler to use and reason about (and all the struct members are pointer-type map/slice values anyhow, so copying the struct is still pretty cheap).

This also swaps the scanner error handling to return the partially parsed Metadata object alongside the scanner error -- the error already tells us the object isn't fully complete data, so it's fair/fine to return and will likely just be ignored by the caller instead.  This also allows us to get to 100% code coverage. 👀

This also updates our "treat `oci-import` just like `FROM scratch`" code to *actually* parse `FROM scratch` so we can't accidentally cause "missing data" bugs there in the future, and I implemented that using `sync.OnceValues` which requires upgrading to Go 1.21, but IMO that's a worthwhile tradeoff (because `sync.OnceValues` makes that code so clean/simple).
2025-01-09 16:20:49 -08:00
Joseph Ferguson 9128f86f3f Bump go version to 1.20 2023-05-04 15:36:42 -07:00
Joe Ferguson 444b05a2d7 Periodic update to keep go version current 2022-07-21 10:05:05 -07:00
J0WI 7651eb98bd Debian Bullseye 2021-10-07 10:47:36 +02:00
Tianon Gravi 7143aaa8ad Update to Go 1.16
(and add riscv64 binaries 👀)
2021-03-10 13:04:46 -08:00
Tianon Gravi 143301cc9e Merge github.com/docker-library/go-dockerlibrary into bashbrew
This adjusts import paths, go.mod, and adds a new "Dockerfile.test" to run the unit tests.
2020-08-19 16:21:07 -07:00