Ettore Di Giacinto
67362a3bc1
Drop unused condition
2020-03-19 22:29:34 +01:00
Ettore Di Giacinto
302d18e749
Tag the target image with the computed hash
2020-03-19 22:28:33 +01:00
geaaru
9047e13d21
Merge pull request #68 from mudler/tree-bump
...
Tree bump
2020-03-16 22:57:14 +01:00
Daniele Rondina
0249c0fa4a
version: Add temporary workaround for handle build string with _
2020-03-16 22:18:48 +01:00
Daniele Rondina
fc40c770ab
Add 'tree bump' command
2020-03-16 22:18:48 +01:00
Ettore Di Giacinto
4357ee45e9
Drop unused functions in package
2020-03-16 18:08:46 +01:00
Daniele Rondina
6ce9a86245
Update vendor github.com/Sabayon/pkgs-checker@b6efed54b4b1
2020-03-16 00:37:31 +01:00
Daniele Rondina
853a1995b4
cmd/tree/validate: Now support multiple tree paths
2020-03-15 19:16:22 +01:00
Daniele Rondina
039b77fdfd
cmd/tree/validate: Add counter of broken deps
2020-03-15 17:40:20 +01:00
Ettore Di Giacinto
050d9b3095
Adapt to image based on debian instead of alpine for fixture
2020-03-15 15:30:27 +01:00
Ettore Di Giacinto
4985ff7b5a
Use standard golang image for fixture (alpine doesn't contain gcc)
2020-03-15 15:42:24 +01:00
Ettore Di Giacinto
6f138811dd
Make recipes idempotent, allowing to load multiple trees
2020-03-15 13:31:12 +01:00
Daniele Rondina
f02c54a274
cmd/tree/validate: Improve scripting integration
2020-03-14 17:38:57 +01:00
Daniele Rondina
d6182cba3b
Add cli command 'tree validate'
2020-03-14 11:14:14 +01:00
Daniele Rondina
bc5c0fa0cf
cmd/tree/pkglist: Cleanup code
2020-03-14 11:14:14 +01:00
Ettore Di Giacinto
dc64dbff75
Don't try to solve finalizers with --nodeps
2020-03-13 19:32:00 +01:00
Daniele Rondina
a94e430a3b
cmd/tree/pkglist: Add --matches/-m flag
2020-03-13 18:08:49 +01:00
Daniele Rondina
93f8f0dd0f
solver: Add category to tests
2020-03-12 00:26:53 +01:00
Daniele Rondina
7bdcc72dd3
Update vendor github.com/Sabayon/pkgs-checker@f4e0aec412f0
2020-03-11 08:38:15 +01:00
Daniele Rondina
e47c07d438
Update vendor github.com/Sabayon/pkgs-checker@935615ba9d27
2020-03-10 09:12:22 +01:00
Daniele Rondina
6fc5d1a97b
Upgrade vendor github.com/Sabayon/pkgs-checker@v0.6.1
2020-03-09 23:35:01 +01:00
Daniele Rondina
f4a5a97cff
tree/compiler_recipe: Return right error message
2020-03-08 16:28:12 +01:00
Daniele Rondina
8c972403a3
tree/compiler_recipe: Handle invalid tree path
...
If instead of abs path is used bash annotation
now return an error related to wrong directory
supply.
2020-03-08 15:47:40 +01:00
Daniele Rondina
82a17a1a22
Drop cfgFile print to improve bash integration
2020-03-08 00:13:45 +01:00
Daniele Rondina
17238d187a
Change 'Skip dir' message to debug
2020-03-08 00:07:20 +01:00
Daniele Rondina
ad011e937f
cmd/tree/pkglist: Fix init of regExcludes
2020-03-06 17:54:26 +01:00
Daniele Rondina
25c796c430
Add 'tree pkglist' command cli
2020-03-06 17:51:04 +01:00
Daniele Rondina
df5499393f
--verbose/-v is now --debug/-d
2020-03-06 16:53:36 +01:00
Ettore Di Giacinto
026ddf6fc9
Add dev version tag
2020-03-05 18:37:16 +01:00
Ettore Di Giacinto
ec0b83a811
Prepare for 0.6.4 tag
2020-03-05 18:36:51 +01:00
Ettore Di Giacinto
765261f233
Add Swap() to Installer. Refactor code in Upgrade() to consume it
2020-02-27 23:48:14 +01:00
Ettore Di Giacinto
6c7e24fadf
Sync repositories once (and at beginning) during upgrade
2020-02-27 23:25:29 +01:00
Ettore Di Giacinto
de23e0d5b1
Download dependencies before installing
...
This enables smoother upgrades, and uses cache to pre-download
packages before uninstall/install
Allows also from cli to download deps only
2020-02-27 23:15:31 +01:00
Ettore Di Giacinto
8572aa5222
Preserve cache data from deletion during uninstall
2020-02-27 23:14:36 +01:00
Ettore Di Giacinto
0e0c2f21a6
Add dev version tag
2020-02-27 18:57:41 +01:00
Ettore Di Giacinto
575079bb77
Prepare for 0.6.3 tag
2020-02-27 18:57:13 +01:00
Ettore Di Giacinto
5bcc8d112a
Enforce solver constraints
...
- Don't sign installed packages during finalizer execution
- Enforce solver constraints: build ALO and AMO rules taking into account
that the current package might not be selected at all.
- Force uninstalls on upgrade
- Enable option to tell uninstall to ignore conflict with the analized system state,
as we don't want any conflict with the installed to raise during the upgrade.
In this way we both force uninstalls and we avoid to check with conflicts
against the current system state which is pending to deletion.
This is due to the fact that now the solver enforces the constraints
and explictly denies two packages of the same version installed.
- Adapt test as now we generate more constraints, which makes the solver more
noisy on the package that are explictly selected or not
2020-02-27 18:38:31 +01:00
Ettore Di Giacinto
65b17f5283
Add simple upgrade integration test
2020-02-26 23:59:48 +01:00
Ettore Di Giacinto
a0618107a8
Adapt tests
2020-02-26 23:56:21 +01:00
Ettore Di Giacinto
25f2abf103
Do conflict with same package versions while building formula
2020-02-26 23:01:08 +01:00
Ettore Di Giacinto
e3ebfd6bfe
Respect ImageRepository with build --nodeps
2020-02-26 19:00:22 +01:00
Ettore Di Giacinto
48df98bcae
Add dev version tag
2020-02-23 22:42:02 +01:00
Ettore Di Giacinto
0ce1baa448
Prepare for 0.6.2 tag
2020-02-23 22:41:33 +01:00
Ettore Di Giacinto
07610bc216
Add build option to remove backend artifacts
...
Add keep-exported-images to build to instruct to remove backend artifacts (docker images)
2020-02-21 22:33:18 +01:00
Daniele Rondina
a04dadf100
Add support for parsing version with build
2020-02-21 21:56:32 +01:00
Daniele Rondina
2f4ce42472
Update vendor github.com/Sabayon/pkgs-checker
2020-02-21 21:55:42 +01:00
Daniele Rondina
def04724d4
Add support for build identifier on version
2020-02-20 17:46:47 +01:00
Ettore Di Giacinto
38296bc5d7
Add test for HashFingerprint()
2020-02-19 18:33:14 +01:00
Ettore Di Giacinto
7e16e0cdb6
Add HashFingerprint() to Package and consume it while generating image names
...
In this way we don't depend on the package fingerpint characters while generating images, allowing
to support completely semver (e.g. + character is not allowed in docker images tag).
This change is not backward compatible with images currently already built and will invalidate the cache
2020-02-19 18:28:29 +01:00
Ettore Di Giacinto
647ea35983
Add a way to extend the CLI with external binaries
...
This lets luet to be extended like git does (just by having luet-subcommand binaries under $PATH)
following the UNIX filosophy. It has the downside that we silence the errors from cobra and we handle
them by ourselves.
Also the Exec syscall is not portable, and it should have implementation for each platform (hence why in helpers)
2020-02-18 23:08:14 +01:00