Comments (3)
I think we just need something that implements Peek, like bufio.Reader:
https://golang.org/pkg/bufio/#Reader.Peek
Or something that implements ReadAt, like os.File:
https://golang.org/pkg/os/#File.ReadAt
For most things we're already passing around a File, but I think using a buffered Reader might be easier to bolt onto existing code.
from go-containerregistry.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
from go-containerregistry.
I'm pretty sure this is the reason I can't do this:
$ crane append -f <(tar -c vendor/ -f -) -t gcr.io/jonjohnson-test/some-vendor-directory
2020/11/29 11:46:07 base unspecified, using empty image
2020/11/29 11:46:12 pushed blob: sha256:1b7c025f16477c734ce6b60bfbaa5d8398f9c66b96d53bdeea129445c3718de0
2020/11/29 11:46:13 pushing image gcr.io/jonjohnson-test/some-vendor-directory: PUT https://gcr.io/v2/jonjohnson-test/some-vendor-directory/blobs/uploads/AJAD5v2UpUS6IPDnYZRCKZWltOKRsrztLTaErFajji4ZaAAAOEBhi3jLCFwptDQ4Qha5CgcT1CZaIC1LLhXvQiLf3DbxOCz-K-emChYIfkSkqlrNEQXWbunn-wm8Ts--FeWsYedBb0bYDMSwblKhCbd4HQXd3kt7akPeSjYmu2MoQYrjkeyAocPT9QD_?digest=sha256%3A2378ec17076387a1b5a3663b6bad06e1cbd2e43716ceb4ca713d1db15b479d6b: DIGEST_INVALID: 'digest' parameter 'sha256:2378ec17076387a1b5a3663b6bad06e1cbd2e43716ceb4ca713d1db15b479d6b' does not match computed digest 'sha256:81da0491c5af5635831f6a3febb5d9bfd66987ba3ecc42e58dc3d80938c25705'.
from go-containerregistry.
Related Issues (20)
- crane: ability to add history for layers with crane append
- crane: Does not push the image layers again if we manually delete from the registry server
- question: How do I cache a layer directly? HOT 4
- crane: Deleting image by tag not working HOT 2
- ggcr: Constructing a name.Reference from a registry without a '.' results in ambiguity HOT 1
- crane: `validate` fails with invalid header message on image with uncompressed layers mediaType HOT 1
- question: Support OCI artifacts with artifactType HOT 1
- ggcr: Ignore malformed secrets HOT 1
- ggcr: Max RAM consumption and slowdown when using daemon.Image() and .Layers() on large images HOT 1
- crane: "invalid tar header" HOT 1
- crane: `--platform` does nothing? HOT 2
- How to get just the image name from the oci repo url HOT 2
- ggcr: tarball.Image() read from minio object stream reports: invalid tar header HOT 1
- question: support opening a tar.gz image HOT 1
- crane: fast copy doesn't work with artifact registry HOT 1
- gcrane: gcloud crashed (MetadataServerException): HTTP Error 500: Internal Server Error HOT 1
- ggcr: 'go test -race' fails on github.com/sigstore/cosign commit 38e2b30b270128998cf7fc819ffa08fca41cda7e HOT 2
- question: can't pull 0.16.1 image HOT 5
- crane: running image as non-root UID fails HOT 1
- question: Should there be support for repository names starting with capital letters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-containerregistry.