Ettore Di Giacinto
114d4899f6
🐛 Update yaml to v3
...
The recent switch to mergo throws in a yaml version which is affected
by https://github.com/go-yaml/yaml/issues/139 , and caused
https://github.com/rancher-sandbox/cOS-toolkit/issues/1189 .
Updating to yaml.v3 where it was affected.
Note mergo still uses v2, so this can be problematic on other areas
https://github.com/imdario/mergo/issues/206 .
2022-03-21 14:58:41 +01:00
dependabot[bot]
2996c055a5
⬆️ Bump github.com/docker/distribution ( #289 )
...
Bumps [github.com/docker/distribution](https://github.com/docker/distribution ) from 2.7.1+incompatible to 2.8.0+incompatible.
- [Release notes](https://github.com/docker/distribution/releases )
- [Commits](https://github.com/docker/distribution/compare/v2.7.1...v2.8.0 )
---
updated-dependencies:
- dependency-name: github.com/docker/distribution
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com >
2022-03-12 18:30:57 +01:00
dependabot[bot]
1642859f32
⬆️ Bump github.com/containerd/containerd from 1.5.9 to 1.5.10 ( #290 )
...
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd ) from 1.5.9 to 1.5.10.
- [Release notes](https://github.com/containerd/containerd/releases )
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md )
- [Commits](https://github.com/containerd/containerd/compare/v1.5.9...v1.5.10 )
---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 15:09:02 +01:00
Ettore Di Giacinto
6f77fa2b3a
♻️ Use sprig instead of helm
...
This alleviates luet build dependency graph while it simplifies template
logic too.
2022-01-27 17:42:53 +01:00
Ettore Di Giacinto
f8350a2f07
Revert " ⬆️ Bump helm.sh/helm/v3 from 3.3.4 to 3.6.1 ( #280 )" ( #281 )
...
This reverts commit db8e3da01f
.
2022-01-08 09:36:01 +01:00
dependabot[bot]
db8e3da01f
⬆️ Bump helm.sh/helm/v3 from 3.3.4 to 3.6.1 ( #280 )
...
Bumps [helm.sh/helm/v3](https://github.com/helm/helm ) from 3.3.4 to 3.6.1.
- [Release notes](https://github.com/helm/helm/releases )
- [Commits](https://github.com/helm/helm/compare/v3.3.4...v3.6.1 )
---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-08 07:23:47 +01:00
dependabot[bot]
d80cbae40a
⬆️ Bump github.com/containerd/containerd from 1.5.7 to 1.5.9 ( #279 )
...
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd ) from 1.5.7 to 1.5.9.
- [Release notes](https://github.com/containerd/containerd/releases )
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md )
- [Commits](https://github.com/containerd/containerd/compare/v1.5.7...v1.5.9 )
---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-08 07:16:46 +01:00
Ettore Di Giacinto
ba0d625b5f
🎨 Port package to types
...
This refactors DefaultPackage into types.Package and gets rid of the
interface. This is a preceeding for a follow up where accessors will be
removed from the code.
It also does several cleanup, so we get rid also of some unneeded
dependencies.
2022-01-08 00:05:20 +01:00
Ettore Di Giacinto
9bd6730aeb
🤖 Adapt makefile/scripts to ginkgo changes
2022-01-04 18:47:21 +01:00
Ettore Di Giacinto
196cdc5cfc
🔧 Extract common func into api function, also set sane defaults
2021-12-28 18:55:59 +01:00
Ettore Di Giacinto
c98f427156
🎨 Introduce contextualized logging
...
This commit is multi-fold as it also refactors internally context and logger
as interfaces so it is easier to plug luet as a library externally.
Introduces a garbage collector (related to #227 ) but doesn't handle yet
parallelism.
Closes #265
2021-12-21 21:54:14 +01:00
Ettore Di Giacinto
1f6d0cc66c
🆕 Update go-pluggable
2021-12-07 18:23:49 +01:00
Ettore Di Giacinto
5a7e97d0fb
Update vendor
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
bb40b5d1b7
update vendor
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
67a07e7c5a
Drop link to moby fork
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
063f704057
update vendor
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
ab251fefce
update vendor
2021-10-24 18:26:25 +02:00
Ettore Di Giacinto
b9895c9e05
update vendor
2021-10-21 23:58:19 +02:00
Ettore Di Giacinto
fe14d56afe
Massive UX rewrite
...
- Ditch multiple libraries for progressbar, spinner, colors and replace
with pterm
- Detect when running on terminal and disable automatically spinner
- Add support for multiple progress bars
- Huge rewrite of the configuration part. No more crazy stuff with viper
CLI commands now correctly overrides default config file as expected
- Limit banner to be displayed on relevant parts
Fixes #211
Fixes #105
Fixes #247
Fixes #233
2021-10-21 23:58:00 +02:00
Ettore Di Giacinto
5b4e930fc3
Do implement a real cache
...
Instead of merely storing files into disk use a real cache.
This also makes possible finally to reference artifacts in the cache with the
package checksum, which solves the cache hit checksum failures we had
previously.
2021-10-19 21:25:01 +02:00
Ettore Di Giacinto
619c9aeda0
update vendor
2021-10-14 22:06:48 +02:00
Daniele Rondina
77b4c9a972
Update vendor Sabayon/pkgs-checker@v0.8.4 ( #255 )
...
* Update vendor Sabayon/pkgs-checker@v0.8.4
* Drop golang.org/x/text
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com >
2021-10-06 13:41:14 +02:00
Itxaka
220f8700ce
Update vendor and go.mod ( #245 )
...
Due to https://github.com/mudler/luet/pull/244 being rebased on top of
master instead of develop there is a mismatch in the dependencies.
This should fix it.
Signed-off-by: Itxaka <igarcia@suse.com >
2021-08-11 10:35:48 +02:00
Itxaka
4adc0dc9b9
Use goreleaser to build and release ( #244 )
...
Instead of using gox on one side and an action to release, we can merge
them together with goreleaser which will build for extra targets (arm,
mips if needed in the future) and it also takes care of creating
checksums, a source archive, and a changelog and creating a release with
all the artifacts.
All binaries should respect the old naming convention, so any scripts
out there should still work.
Signed-off-by: Itxaka <igarcia@suse.com >
2021-08-11 08:30:55 +02:00
Ettore Di Giacinto
4d6cccb2fa
Give explaination when formulas are unsat
...
Fixes #168
Signed-off-by: Ettore Di Giacinto <mudler@sabayon.org >
2021-08-07 14:46:05 +02:00
Ettore Di Giacinto
76b70ebeb4
Add dirhash to package signatures
...
While this breaks current hashing, it ties also the spec content to the
hash, in this way if we change something in the spec folder, it breaks
the hashing for the package.
Signed-off-by: Ettore Di Giacinto <mudler@sabayon.org >
2021-07-09 12:37:38 +02:00
Ettore Di Giacinto
92e18d5782
Support priv/unpriv image extraction
...
Optionally add back privileged extraction which can be enabled with
LUET_PRIVILEGED_EXTRACT=true
Signed-off-by: Ettore Di Giacinto <mudler@sabayon.org >
2021-06-16 23:30:28 +02:00
Ettore Di Giacinto
0658020c60
Update go.mod and vendor
2021-06-04 11:15:10 +02:00
Ettore Di Giacinto
1ef18ed2c5
Add salted method for assertion hashing
...
- Add the spec Hash as salt for image hashes
- Add tests and adapt existing ones
- Use a signature to build a spec hash
Fixes : #207
2021-05-19 17:34:01 +02:00
Ettore Di Giacinto
45c8dfa19f
Update go-pluggable
2021-05-13 18:13:44 +02:00
Ettore Di Giacinto
bdc24b84a4
Update go-pluggable
...
- Update vendor and run go mod tidy
2021-05-11 14:02:15 +02:00
Ettore Di Giacinto
7ba7add2a8
Allow to pull specfiles from published repositories
...
- Interpolates values from the repositories compilespec if present
- Automatically merge cache images coming from specified repository when
necessary
Fixes #194
2021-04-16 13:58:51 +02:00
Daniele Rondina
88307b1912
Restore parsing of gentoo string with condition ( #195 )
...
* cmd/helpers: Permit to parse gentoo package str with condition
* Update vendor pkgs-checker @v0.8.1
2021-03-30 09:17:16 +02:00
Ettore Di Giacinto
0028dd3a92
Support content trust images and pull with authentication
...
Contact the notary server if ```--verify``` is specified (or `verify:
true` is enabled on the repo config) and verify if the image is signed,
use the returned value to pull the verified image.
2021-03-11 17:57:59 +01:00
Ettore Di Giacinto
b3e3abec8f
Fixup spinner data race
...
Add spinner lock
2021-02-17 13:01:32 +01:00
David Cassany
18e9ce4557
Trim the Domain Name from cached image references
...
This commit removes the Domain Name, if any, from the cached image
reference before computing the image fingerprint. This way the same
image, if stored in some oter mirror, is still seen as the same one.
Fixes #158
2021-01-29 15:11:52 +01:00
Ettore Di Giacinto
c24a3a35f1
Update gomod and vendor
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
7b25a54653
Update gomod and vendor
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
f871111e50
Collect errors from finalizer runs
...
Instead of failing and depend on the --force flag, always execute
finalizer and collect errors to determine if install was successfull or
not
2020-12-25 10:35:09 +01:00
Ettore Di Giacinto
f0fae82ad9
Add experimental zstd support
...
Closes #97
2020-12-18 21:24:01 +01:00
Ettore Di Giacinto
ef034d87b0
Detect if images are available if we don't have to generate a Package
...
While building, if we aren't doing a clean build, we scan now to see if
images are available and we skip, in case we don't find a metadata
already.
2020-12-14 18:32:32 +01:00
Ettore Di Giacinto
8ce135fe12
Add DOCKER_SQUASH
2020-11-27 23:38:31 +01:00
Ettore Di Giacinto
7a10ff2742
Enhance search output with tables and alias to '.' when no args are specified
2020-11-23 19:13:54 +01:00
Ettore Di Giacinto
53ab0e0dd2
Merge pull request #151 from mudler/download-progress-bar
...
Download progress bar
2020-11-20 19:00:25 +01:00
Daniele Rondina
651ea17548
Update vendor/ (progress bar deps)
2020-11-20 18:16:49 +01:00
Ettore Di Giacinto
0cc2b72831
Drop converter code, will be in a separate extension
2020-11-19 18:10:16 +01:00
Daniele Rondina
287098f101
Update vendor github.com/cavaliercoder/grab
2020-11-19 00:56:59 +01:00
Ettore Di Giacinto
c82d23f9f2
Update go-pluggable
2020-11-13 19:50:10 +01:00
Ettore Di Giacinto
0e46e763d5
Move bus implementation to a separate repo, hook to events in luet
2020-11-13 18:25:44 +01:00
Ettore Di Giacinto
a793b44e83
Wip
2020-11-12 23:21:10 +01:00