Ettore Di Giacinto
7bfff97f57
Fixup race when updating compiler options
...
Instead of updating the compiler options that can be accessed by each
worker, update the compilespec BuildOptions directly
2021-04-23 12:02:41 +02:00
Ettore Di Giacinto
a73f5f9b65
Add more tests
2021-04-23 12:02:41 +02:00
Ettore Di Giacinto
0288eedbc3
Always resolve buildhash image, add --rebuild to build
2021-04-23 12:02:41 +02:00
Ettore Di Giacinto
b27237b7ff
Allow to pull images from multiple-repo while generating all artifacts
...
before, without --only-target-package, we were forcing to build the
images locally. Now we extend it also to that use-case.
Also revisit how we pass by the builder image hash, so it's easier to
read.
This change also re-enables tagging and bulding builder images all the
times.
Previously, we regressed into not tagging build images coming out-of-the
tree, with the unpleasant side-effect of not be able to re-build the
same artifacts for those leaf packages.
2021-04-23 12:02:41 +02:00
Ettore Di Giacinto
c9aed37fa7
Fixup on values interpolation and metadata retrieve
...
- Fixup search path on metadata spec load. Previously we were reading
the package being passed, and not the one resolved (it failed against
selectors)
- Do inherit first pushrepositories, so they take precedence over pull
- Add test cases to cover build values interpolation by remote
repositories
- Enhance test cases to check image cache repository inheritance when
--from-repositories is passed
- Fix race condition when inheriting buildspec options: Instead of consuming the compiler one, annotate the updates in the
package BuildOption spec which is passed by
- Update vendor
2021-04-23 12:02:19 +02:00
Ettore Di Giacinto
788b889d14
Enhance integration test to check invalid characters for docker images tags
2021-04-21 11:05:50 +02:00
Ettore Di Giacinto
ef92f23221
Inherit pullimages as pushimages while parsing compilespec metadata
...
Fixes #200
2021-04-19 17:18:37 +02:00
Ettore Di Giacinto
562fcc2421
Strip invalid chars from docker images also for metadata files
...
Fixes #199
2021-04-19 17:18:37 +02:00
Ettore Di Giacinto
54be45dcff
Tag 0.13.1
2021-04-17 10:20:20 +02:00
Ettore Di Giacinto
413572a8e3
Adapt tests at new behavior change
2021-04-17 00:44:10 +02:00
Ettore Di Giacinto
ecc41ce370
Check if there are upgrades before attempting install
2021-04-16 23:38:10 +02:00
Ettore Di Giacinto
dd6501a642
Check if there are upgrades before attempting install
2021-04-16 22:28:30 +02:00
Ettore Di Giacinto
a7b355ed2f
Tag 0.13.0
2021-04-16 21:33:32 +02:00
Ettore Di Giacinto
9f3e7fd0b2
PackageIndex is in repository metadata file only
...
This was a regression in those changeset, don't replicate the info, and
at the same time, write the artifact path containing the name of the
file only (excluding the path)
2021-04-16 15:12:51 +02:00
Ettore Di Giacinto
ac3843e342
Add integration tests
2021-04-16 14:01:23 +02:00
Ettore Di Giacinto
612477718e
Add values interpolation inheritance test
2021-04-16 14:01:23 +02:00
Ettore Di Giacinto
802b0b5201
Add integration test to build with no tree and interpolation values
2021-04-16 14:01:23 +02:00
Ettore Di Giacinto
c5587f9dfc
Add simple integration test about remote-repo builds
2021-04-16 14:01:23 +02:00
Ettore Di Giacinto
c27d4d258e
Allow create-repo to source trees from remote repositories
...
This makes possible to create the repositorie from external ones,
It also required to address #26 .
Fixes #26
2021-04-16 14:01:13 +02:00
Ettore Di Giacinto
9202bcbbbe
Convert raw value to templatedata before merging
2021-04-16 14:00:11 +02:00
Ettore Di Giacinto
fadd5a10a3
Load trees separately while reconstructing spectrees
2021-04-16 14:00:11 +02:00
Ettore Di Giacinto
d297b92483
Update vendor
2021-04-16 14:00:11 +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
Ettore Di Giacinto
57c769b4a5
Refactor compiler and annotate buildoptions into compiler metadata
...
This allows to later pick up values used during build of each package
2021-04-16 13:57:54 +02:00
Ettore Di Giacinto
44cae094e8
Allow multiple build values files
...
Fixes #198
2021-04-16 13:56:51 +02:00
Ettore Di Giacinto
c022c75239
Write BuildTree as an additional repository file
...
Also split Docker repository generation a bit more for readability
2021-04-16 13:56:51 +02:00
Ettore Di Giacinto
3250d63072
Don't merge install and compilation DB. Use a temporary DB for generation
2021-04-16 13:56:51 +02:00
Ettore Di Giacinto
b8961be793
Add accessor to embed custom files to a repository while writing
...
Split up into methods so it's easier to add custom files
2021-04-16 13:56:45 +02:00
Ettore Di Giacinto
036b5c08c6
Split up repository generators
2021-04-08 15:24:32 +02:00
Ettore Di Giacinto
c7b79bf630
Compiler recipe now saves the entire tree
2021-04-08 15:22:00 +02:00
Ettore Di Giacinto
83cb6a2804
Check target with PathSeparator in finalizer.go
2021-04-08 10:22:24 +02:00
Ettore Di Giacinto
182afa315a
Tag 0.12.0
2021-04-08 10:21:22 +02:00
Ettore Di Giacinto
ec19b34ca8
Allow to pull from multiple repositories
...
Adds a new cli flag to luet build `--pull-repository` which allows to
pass-by a list of docker image references which are used to pull the
cache from
Fixes #185
Fixes #184
Closes #161
2021-04-08 09:17:54 +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
a83be204e8
Tag 0.11.8
2021-03-18 13:53:04 +01:00
Ettore Di Giacinto
b8352a81a2
Use Lchown when copying bits, lower message to warn
2021-03-18 11:23:42 +01:00
Ettore Di Giacinto
ebf907fb45
Add owner permissions tests
2021-03-18 10:57:09 +01:00
Ettore Di Giacinto
f0a34f1cf0
Enable NoLchown
...
This caused to drop file permissions
2021-03-18 10:48:23 +01:00
Ettore Di Giacinto
4f1e4c0b41
Switch to containerd when unpacking layers
2021-03-18 10:47:58 +01:00
Ettore Di Giacinto
c736c002af
build: Set privileged to true by default
2021-03-18 10:47:39 +01:00
Ettore Di Giacinto
2c32af2951
Tag 0.11.7
2021-03-16 15:47:37 +01:00
Ettore Di Giacinto
ce349ca1b7
Se the path relative to the artifact when generating docker repositories
2021-03-16 14:46:46 +01:00
Ettore Di Giacinto
662742851a
Generate backend bus events in the backends
2021-03-16 14:46:28 +01:00
Ettore Di Giacinto
f8ef1c0889
Print error when failing downloading docker image
2021-03-16 11:34:36 +01:00
Ettore Di Giacinto
23513f2c75
Include files in search only if we have the artifact
2021-03-15 11:40:34 +01:00
Ettore Di Giacinto
268239a561
Propagate verify when serializing
2021-03-15 11:37:56 +01:00
Ettore Di Giacinto
f8989e464e
Update vendor
2021-03-11 17:57:59 +01: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
caa1cfad5c
Tag 0.11.6
2021-03-09 11:37:41 +01:00
Ettore Di Giacinto
39839edda9
Add util to rootcmd
2021-03-09 11:37:22 +01:00