Commit Graph

12 Commits

Author SHA1 Message Date
Akihiro Suda 27550399fb
go.mod: github.com/containerd/containerd/v2 v2.0.0-rc.1
- github.com/containerd/containerd/{containers,images,...} -> github.com/containerd/containerd/v2/core/{containers,images,...}
- github.com/containerd/containerd/{errdefs,logs,platforms} -> github.com/containerd/{errdefs,logs,platforms}
- github.com/containerd/typeurl -> github.com/containerd/typeurl/v2
- github.com/urfave/cli -> github.com/urfave/cli/v2 (See containerd/containerd PR 9809)
- github.com/gogo/protobuf -> github.com/containerd/containerd/v2/protobuf

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-04-25 12:01:20 +09:00
Sebastiaan van Stijn cb7e5d33ff
separate command-line to a separate module
(This is a very quick attempt at "what this will look like")

This repository provides both command-line utilities, and a module for external
consumers.

Currently, both are part of the same module; as a result, dependencies of both
the module *and* the command-line utilities are listed in the repositories go.mod.
This affects consumers of this project, because (due to go module's nature of
dependency (version) resolution), those consumers will inherit all dependencies,
or will be "forced" to use the same version of the CLI dependencies.

This is a very quick attempt at separating the CLI utilities from the "module",
by creating a separate go.mod (and module) for the CLI utilities.

I'm not fond of the name (github.com/containerd/imgcrypt/cmd) for that module
(possibly renaming to github.com/containerd/imgcrypt/cli would be slightly
clearer).

This change _will_ add some additional work when tagging releases; a separate tag
should be created for the cli utilities (tagging as `cmd/vX.Y.Z`), and the
"github.com/containerd/imgcrypt" dependency in the go.mod inside the cmd directory
may need to be updated to reflect the latest version of the main module when tagging
new releases (as the replace rule is non-transitional); something like:

1. update `github.com/containerd/imgcrypt` version in cmd/go.mod to "next release"
2. tag both `v<new release>` and `cmd/v<new version>` in tandem.

CI / validation also needs to be updated to verify both `go.mod` and `go.sum`
files are correct / up-to-date. Possibly checks should be added to make sure the
main module is isolated from the cmd module (i.e., the "module" should not import
any path from the cmd directory: the reverse is of course OK (and expected)).

Finally; use of the 'vendor' directory may need to be discussed; it is common
to only use a vendor directory for projects that produce binaries, but omit the
vendor directory for "library" projects. In this case (if vendoring is still
desired), the vendor directory should be removed from the root of the repository,
and moved inside the `cmd` directory.

Originally-from: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-28 14:17:54 +09:00
Brandon Lum cad55c90dc Remove ctr-enc from installation
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2021-05-13 10:16:16 -04:00
Stefan Berger 99d39a563b ctr-enc: Set the version for ctr-enc when linking
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-05-07 21:03:20 -04:00
Stefan Berger 71a8421dcd build-sys: Run gofmt -d in 'make check'
Signed-off-by: Stefan Berger <stefan@linux.ibm.com>
2020-10-21 13:40:43 -04:00
Stefan Berger ae432af8b6 Update the Makefile and add install and uninstall targets
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-10-01 13:04:01 -04:00
Stefan Berger 30c2383119 Travis: Run newly added test target
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-08-08 21:40:34 -04:00
Stefan Berger 10a5b9b05d Create a ctr derivative with image crypto support
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-08-08 16:58:27 -04:00
Stefan Berger 82e3c45e2a Update Makefile to build decoder on 'all'
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-08-08 12:11:04 -04:00
Michael Crosby 53a2a152da Add stream processor
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-08 15:52:57 +00:00
Stefan Berger 02123398f7 Merge ocicrypt contents into this project
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-08-08 11:28:34 -04:00
Stefan Berger dd91e32eeb Add Makefile with build and check targets
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-08-08 07:34:09 -04:00