Commit Graph

98 Commits

Author SHA1 Message Date
Paul Holzinger d6dc9dd318 remove containers_image_rekor_stub build tag
It was added for debian so they could build without the deps but this is
no longer needed. Get rid of it to simplify the codebase.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-27 14:02:52 +02:00
Paul Holzinger 7d8f7bdc69 remove containers_image_fulcio_stub build tag
It was added for debian so they could build without the deps but this is
no longer needed, the tag is broken and fails to compile so just get rid
of it to simplify the codebase.

Fixes: #2877

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-27 14:02:52 +02:00
Miloslav Trmač e67404a4ad INCOMPATIBLE: Remove the implementation of the ostree transport
Currently, ostree does not compile:

> ostree/ostree_dest.go:115:28: cannot use d (variable of type *ostreeImageDestination) as private.ImageDestinationInternalOnly value in argument to impl.AddCompat: *ostreeImageDestination does not implement private.ImageDestinationInternalOnly (missing method NoteOriginalOCIConfig) (typecheck)
> 	d.Compat = impl.AddCompat(d)

This has been broken since b941c6bf41 (Nov 18 2024, > 4 months).

Previously:
- 807381f448 (broken almost 4 months),
- 2e33bf7d27 (broken > 7 months)

Overall, it seems extremely likely that noone is using the
containers_image_ostree build tag (off by default since March 2019).

So, finally, give up, and delete the code. Most importantly, this allows us
to delete the > 3-year-old-frozen dependency, and risky CGo code.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2025-05-31 01:28:07 +02:00
Ananth Bhaskararaman 487afc93a3
Fix GoDoc link at the top of the README file
Signed-off-by: Ananth Bhaskararaman <antsub@gmail.com>
2024-04-27 01:39:19 +05:30
Reinhard Tartler 6db15d6fa2 Add buildtags to avoid fulcio and rekor dependencies
For situations where Fulcio and Rekor operations are not required,
this commit provides buildtags to avoid those dependencies.

Signed-off-by: Reinhard Tartler <siretart@gmail.com>
2023-11-13 08:27:37 -05:00
Miloslav Trmač 6e941fa97d Don't claim that libostree is required by default.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-06-07 22:28:56 +02:00
Miloslav Trmač 4a7b3deae3 Add missing documentation of build tags
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-12-09 04:16:10 +01:00
Daniel J Walsh cdd6817ed6
Change all references to docker registry to container registry
Will leave references to distribution spec until there is an OCI Spec we
can point at.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-30 15:34:06 -04:00
Chris Evich 9c64ce59a9 Cirrus: Migrate from Travis CI
Signed-off-by: Chris Evich <cevich@redhat.com>
2021-03-11 11:20:18 +01:00
Valentin Rothberg 39e50b5cdc README: godoc: point to v5
Update the godoc link to point to v5.

Fixes: #1154
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-02-19 09:02:33 +01:00
Mark Janssen 335b34f9ac Replace `vendor.conf` by `go.mod`
Through `go mod init github.com/containers/image` followed by
`go mod tidy`.

Signed-off-by: Mark Janssen <mark@praseodym.net>
2019-09-02 20:42:42 +02:00
Silvano Cirujano Cuesta 8e5017e3b4 improve README.md and the review of the changes
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
2019-07-11 20:39:11 +02:00
Silvano Cirujano Cuesta 9b902d0a70 use 'containers_image_ostree' as build tag
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
2019-07-11 20:39:11 +02:00
Silvano Cirujano Cuesta b46ef148a5 ostree: default is no OStree support
Since only Skopeo uses the OStree transport for fetching images from
OStree repositories, making default no support for OStree. It
simplifies building on other components like libpod and buildah.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
2019-07-11 20:39:11 +02:00
W. Trevor King 48f43073bb README: Drop '**' from "Contributing" header
These are from f4d6188f (Make it easier for CONTRIBUTORS to find
information, 2018-07-05, #474).  I dunno if they were intentional or
not, but I thought they might be footnote markers so I scrolled down
to the bottom of the README looking for a footnote.  Remove them to
save other people from that same confusion ;).

Signed-off-by: W. Trevor King <wking@tremily.us>
2019-03-08 23:09:02 -08:00
Steve Milner 7539581201 README.md: Update fedora package requirements
libostree-devel is now ostree-devel

Signed-off-by: Steve Milner <smilner@redhat.com>
2018-10-15 10:40:15 -04:00
Antonio Murdaca 490390b7ab
Merge pull request #486 from Silvanoc/master
Fix license reference in README.md
2018-08-27 12:27:14 +02:00
Daniel J Walsh b74bee1962
skopeo moved to containers/skopeo
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-08-19 09:12:27 -04:00
Silvano Cirujano Cuesta e0d8d821a4 Fix license reference in README.md
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
2018-07-27 15:05:56 +02:00
Daniel J Walsh f4d6188ff3
Make it easier for CONTRIBUTORS to find information
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-07-05 07:04:20 -04:00
Miloslav Trmač 8b1137e536 Disable the ostree transport on macOS
Set the containers_image_ostree_stub build tag automatically on macOS;
at least right now, ostree/src/libostree/ostree-linuxfsutil.c hard-codes
Linux-specific header files and ioctls, so we are fairly sure that it will
not be available no macOS.

Make the ostree subpackage also conditional on containers_image_ostree_stub ,
so that we don't even try to build it (and any reference to it fails with
"no buildable source files").

Finally, use $BUILDFLAGS also in (go list) when listing the subpackages,
so that we don't try to run tests in the ostree subpackage (and therefore
try to build it) when it has been disabled.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-08-31 21:17:59 +02:00
Miloslav Trmač c5e371bcc8 Add a containers_image_ostree_stub build tag to make the libostree dependency optional
If this tag is defined, transports/alltransports registers a stub
instead of the real package.

Also updates README, adding the ostree-devel dependency to the dnf
command and restructuring it to have a list of build tags.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-19 16:48:36 +02:00
Miloslav Trmač ed2844ccc6 Document the gpgme dependency and how to install it
… instead of just documenting how to avoid it.

And move the (make BUILDTAGS=…) variant into the “Contributing”
subsection, it is not useful when integrating this into another project.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač 313b3b262c Fix the actual building instructions
(go build ./...) is entirely useless when not developing this project:
per (go help build):
> When compiling multiple packages or a single non-main package,
> build compiles the packages but discards the resulting object,
> serving only as a check that the packages can be built.

Instead, add a starting point for integrating the library into a user.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač d6b9484299 Add another skopeo pointer to the “building” subsection
Some people asking “how to build this” really shouldn't.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač b297a4ddf8 Move the “when developing this library” sentence into a “Contributing” section
It is not something people just wanting to use the project care about,
and we want to make the containers_image_openpgp tag clearly related.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač 3889b13ed4 Enhance the dependencies subsection
Be a bit more explicit about the lack of “vendor” subdirectory.

… and use a file name instead of “here” as a link title to make it
easier to see what it points to.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač 0415d2d276 Add a “command-line usage” heading and section
This is not really a new content, just emphasizing the existence of
skopeo as a starting point—and highlights `copy.Image`.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-06-06 18:04:09 +02:00
Miloslav Trmač f5768e7cbd Allow choosing between a gpgme and openpgp signature backend using a build tag
The default is gpgme; a containers_image_openpgp build tag can be used
to use openpgp instead.

openpgp does not currently support signing, and is based on mfojtik's
implementation (adding GPG home directory support, parsing of unarmored
keys, and fixing ImportKeysFromBytes semantics).

Also adds build documentation, including the new
containers_image_openpgp build tag, to README.md.

This does not yet hook this into Travis, because that needs a
corresponding skopeo build infrastructure and test update to make it
possible.  That is a separate commit (perhaps a separate PR)?

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-03-28 18:57:11 +02:00
Erik Hollensbe 969813f8e6 README.md: notice about dependencies
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2017-02-25 02:15:55 -08:00
Erik Hollensbe 712acc974b README.md: word-wrap
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2017-02-25 02:15:55 -08:00
Dan Walsh a222a565a9 Add more description to the containers/image library
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2016-11-04 11:05:28 -04:00
Christoph Görn 92326fc199
fixed the domainname of Freenode
Signed-off-by: Christoph Görn <goern@redhat.com>
2016-10-19 16:29:13 +02:00
Antonio Murdaca 7dfb5b0e29 README.md: remove todo
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-07-05 16:32:02 +02:00
Brandon Philips 9d69cdaed4 README: add contact details
Signed-off-by: Brandon Philips <brandon.philips@coreos.com>
2016-06-28 09:36:59 -07:00
Antonio Murdaca 352b161f27 README.md: status buttons on a row
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-06-27 16:50:52 +02:00
Antonio Murdaca c3b962f68a README.md: add build status
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-06-27 16:18:18 +02:00
Antonio Murdaca e68e0e1110 move the project to a library
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-06-25 11:25:48 +02:00
Doug Davis de42d88d2c Move to Apache 2 license
Signed-off-by: Doug Davis <dug@us.ibm.com>
2016-06-24 11:35:34 -07:00
Vincent Batts 11a0108456 README: fewer build steps
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2016-06-23 15:19:27 -04:00
Antonio Murdaca b6a38edfcb update README.md
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-06-22 15:52:29 +02:00
Miloslav Trmač 55622350c4 Show (skopeo copy) and (skopeo delete) in README.md 2016-06-11 03:34:53 +02:00
Miloslav Trmač 29d189b581 Recommend (make check) instead of (make test-integration)
... so that we also run validate-* and unit tests.
2016-06-11 03:20:27 +02:00
Antonio Murdaca fb236c85af README.md: fix examples
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-06-07 18:27:31 +02:00
Jhon Honce eab73f3d51 Update man page
Resolves https://github.com/projectatomic/skopeo/issues/12

* Convert man page from markdown to nroff
* Fill out man page
* Remove TODO's from go code regarding man page
* Additional information on building instructions
* Update Makfile

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2016-04-21 09:46:02 -07:00
Antonio Murdaca 3a09e2bf8e clean vendors and bootstrap tls verify
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-03-23 10:27:59 +01:00
Antonio Murdaca 103420769f drop docker/ code
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-03-22 15:50:41 +01:00
Antonio Murdaca 7be01242a8 remove duplicate code
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-03-22 15:50:40 +01:00
Antonio Murdaca 5f4a5653ac add todo
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-03-17 12:02:03 +01:00
Antonio Murdaca 6a00ce47d2 import cifetch code and add layers command
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-03-17 11:48:04 +01:00