Commit Graph

1448 Commits

Author SHA1 Message Date
Ettore Di Giacinto
edd2275bf5 🎨 Allow to pass by a logger interface to context 2022-05-26 13:06:47 +00:00
Ettore Di Giacinto
d6ae727d79 🐛 Fix handlelock panic
Somehow this slipped in, as we should check the lock only if we have enough args.

Fixes #297
2022-05-25 10:07:25 +00:00
Ettore Di Giacinto
fea872aba0 ⬆️ Tag 0.32.1 2022-05-24 23:05:35 +02:00
Ettore Di Giacinto
1006be9271
🐛 Bail out when no packages are found with default solvers (#296)
* 🐛 Bail out when no packages are found with default solvers

Checking packages is more tricky when a resolver is set. Resolvers
are capable of mutating the user request and remove part of the
constraints in order to resolve a specific solution.

This had the countereffect on a normal solver to not detect correctly
packages when missing from the wanted set and not proposed during
installation.

This should fix all the cases above taking into consideration of
resolvers and adding specific test-cases for it.

* ⚙️ Pin to tag for test image
2022-05-24 23:01:56 +02:00
Ettore Di Giacinto
b5da2fa7b4
⚙️ Fixup corner case when templating requires
Adds also specific tests to cover that area
2022-04-28 12:57:36 +02:00
mudler
2aa4c8a42e ⚙️ Keep full string around, helps debugging 2022-04-28 01:00:58 +02:00
mudler
5bc3e3f277 ⬆️ Bump version to 0.32.0 2022-04-27 23:33:49 +02:00
Ettore Di Giacinto
2fa1defd87 ⚙️ Add support for subpackages during buildtime 2022-04-27 23:33:49 +02:00
Ettore Di Giacinto
c363c916d6 ⚙️ Small fixups and enhancements 2022-04-27 23:33:49 +02:00
Ettore Di Giacinto
e70a543f42 ⚙️ Add ability to build from Dockerfiles directly 2022-04-27 21:39:55 +02:00
Ettore Di Giacinto
4e2a2adfc1 🎨 refactor out common code in tree builder 2022-04-26 21:15:56 +02:00
Ettore Di Giacinto
9361011cd2
⚙️ Cumulate error on SyncRepositories
We don't want to stop syncing but give each repo its way to sync up
2022-04-22 11:59:47 +02:00
Ettore Di Giacinto
388a3e4471
🎨 CLI UX enhancements 2022-04-22 11:59:46 +02:00
Ettore Di Giacinto
6674abb256
⬆️ Bump version to 0.31.2 2022-04-14 09:34:18 +02:00
mudler
cca1a6dbc4
⚙️ Annotate build dir when building against system repo 2022-04-14 09:33:44 +02:00
mudler
58e857e700 ⬆️ Bump version to 0.31.1 2022-04-13 23:28:44 +02:00
mudler
77c7eab1ee ⚙️ Fixup runtime tree detection during join images
We need to hook up the runtime DB in order to query the correct part of
the tree
2022-04-13 23:28:44 +02:00
Ettore Di Giacinto
6bf91a0b60
⬆️ Bump version to 0.31.0 2022-04-13 18:47:38 +02:00
Ettore Di Giacinto
c6170fabd6
⚙️ Enhancements to final images building
This commit is multi-fold and impacts several areas:

- Don't re-generate final artifact locally if already present while
building with `requires_final_images`.
- Expose to CLI a way to build final images without pushing them.
- The packages listed with `requires_final_images` now are evaluated by
  the solver so the full deptree is took into account

Fixes: https://github.com/mudler/luet/issues/294
2022-04-13 18:04:50 +02:00
Ettore Di Giacinto
18881c3283 ⬆️ Bump version to 0.30.3 2022-03-23 18:04:07 +01:00
Ettore Di Giacinto
9da675c12e ⚙️ Add back missing template functions from helm 2022-03-23 18:02:44 +01:00
Ettore Di Giacinto
82f339f493 ⬆️ Bump version to 0.30.2 2022-03-21 18:33:00 +01:00
Ettore Di Giacinto
d5138a6c0b 🐛 Fixup migration
Extend it so it is not bound to any version, try to parse it instead.
2022-03-21 18:30:52 +01:00
Ettore Di Giacinto
f19b893820 ⬆️ Tag 0.30.1 2022-03-21 15:36:54 +01:00
Ettore Di Giacinto
a169665e70 🤖 Add integration test to cover nested build values 2022-03-21 15:01:17 +01:00
Ettore Di Giacinto
2f60504da3 ⬆️ Update vendor 2022-03-21 15:00:51 +01:00
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
Ettore Di Giacinto
8a80d70b78 ⬆️ Tag 0.30.0 2022-03-19 00:40:22 +01:00
Ettore Di Giacinto
4947b891c5 ⚙️ Add luet repo add/get
Fix #230
2022-03-17 17:01:43 +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
Yiran Zhou
32a8bd8e81
docs: fix broken link (#291) 2022-03-12 09:04:26 +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
660c5a2dab
📓 Update docs to mention agregOS 2022-02-15 21:17:32 +01:00
Ettore Di Giacinto
fe504e9802
📓 docs: Update repository section 2022-02-04 19:55:03 +01:00
Ettore Di Giacinto
a591a1e44f 📓 Add docs alongside 2022-01-30 22:04:36 +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
8bcdf6bc28
🐳 Drop upx build from Dockerfile 2022-01-20 13:59:44 +01:00
David Cassany Viladomat
881bf03c3d
Do not use os.Exit in exportable packages (#286)
Fixes #285

Signed-off-by: David Cassany <dcassany@suse.com>
2022-01-12 08:57:41 +01:00
Ettore Di Giacinto
4943ed6aef ⚙️ Resolve templates folder when syncing repositories
This fixes #284
2022-01-09 14:21:42 +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
9c61210b5b 🆕 Tag 0.22.6 2022-01-07 15:41:51 +01:00
Ettore Di Giacinto
519058f13c 🔧 Do not store file list of hidden packages 2022-01-07 00:02:22 +01:00
Ettore Di Giacinto
f0200018c7 🆕 Tag 0.22.5 2022-01-04 22:46:28 +01:00
Ettore Di Giacinto
6198eba3b8 ♻️ Drop travis file and chglog 2022-01-04 20:44:31 +01:00
Ettore Di Giacinto
9bd6730aeb 🤖 Adapt makefile/scripts to ginkgo changes 2022-01-04 18:47:21 +01:00
Ettore Di Giacinto
2bd623a61c 🔧 Drop containerd workaround
Partly reverts
37cc186c0b,
but re-enable test.
2022-01-04 17:03:21 +01:00
Ettore Di Giacinto
80bc5429bc 🆕 Tag 0.22.4 2021-12-28 22:08:04 +01:00