Ettore Di Giacinto
47f0049efa
Tag 0.9.4
2020-11-19 18:52:22 +01:00
Ettore Di Giacinto
0cc2b72831
Drop converter code, will be in a separate extension
2020-11-19 18:10:16 +01:00
Ettore Di Giacinto
c3559d952c
Tag 0.9.3
2020-11-15 13:38:30 +01:00
Ettore Di Giacinto
cf7df00a65
Add luet tree images command to show images tree
2020-11-14 14:51:11 +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
19e6054574
Tag 0.9.2
2020-11-10 20:20:27 +01:00
Ettore Di Giacinto
665261e526
Tag 0.9.1
2020-11-09 19:42:34 +01:00
Ettore Di Giacinto
794c5984a2
Add pack command
2020-11-09 18:16:22 +01:00
Ettore Di Giacinto
088adf6f3a
Tag 0.9
2020-11-08 18:25:59 +01:00
Ettore Di Giacinto
df14fe60fc
Tag 0.8.15
2020-11-08 11:07:33 +01:00
Ettore Di Giacinto
76328176c1
Tag 0.8.14
2020-11-07 12:29:07 +01:00
Ettore Di Giacinto
46ed6423ad
Merge pull request #147 from mudler/fix-protect-uninstall
...
Fix protect uninstall
2020-11-07 12:28:24 +01:00
Daniele Rondina
0f59c207b0
Load config protect files on upgrade/uninstall
2020-11-06 23:30:08 +01:00
Ettore Di Giacinto
dcc5aae3cd
Tag 0.8.13
2020-11-06 22:25:26 +01:00
Ettore Di Giacinto
55ec38ffc7
Tag 0.8.12
2020-11-03 20:02:44 +01:00
Ettore Di Giacinto
9aa352dec8
Add json output to build
2020-11-03 18:06:56 +01:00
Ettore Di Giacinto
2b67b8dd24
Bump version
2020-10-30 19:15:10 +01:00
Ettore Di Giacinto
91dfb8ce3a
Enhance CLI output
2020-10-30 19:15:04 +01:00
Ettore Di Giacinto
529a827c5f
Tag 0.8.10
2020-10-29 16:50:17 +01:00
Ettore Di Giacinto
1956f476cc
Set concurrency when building
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
a216f71d53
Inverted options
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
95e640c9d0
Make solver type switchable
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
4e9313ed55
Tag 0.8.9
2020-10-22 18:36:37 +02:00
Ettore Di Giacinto
c9952b12a8
Get file list from parsed yaml
2020-10-22 17:33:37 +02:00
Ettore Di Giacinto
abae9c320a
Tag 0.8.8
2020-10-19 18:47:36 +02:00
Daniele Rondina
c0cc9ec703
convert: Now use slot for category name
2020-10-18 19:58:15 +02:00
Ettore Di Giacinto
4028c62367
Tag 0.8.7
2020-10-11 15:17:16 +02:00
Ettore Di Giacinto
3261b2af98
Drop also package file list from db entry
2020-10-10 18:53:43 +02:00
Ettore Di Giacinto
b88a81c7ed
Add database command
...
- Allows to override the system db and create/remove entries as desired.
The input format is the same metadata as the one generated by the
artifacts. It contains the Package and the file list that we need.
- Add integration test
Closes #47
2020-10-10 18:26:40 +02:00
Ettore Di Giacinto
1c1bdca343
Add only-target-package option to luet build
2020-10-06 17:57:57 +02:00
Ettore Di Giacinto
2cb0f3ab5d
Tag 0.8.6
2020-10-04 19:58:13 +02:00
Daniele Rondina
c64660b8d1
Permit to ignore config protect rules
...
* Added command line option --skip-config-protect
* Added config option config_protect_skip
2020-10-02 22:25:21 +02:00
Ettore Di Giacinto
6f623ae016
Tag 0.8.5
2020-09-10 17:40:33 +02:00
Daniele Rondina
bd80f9acd2
cmd/tree/bump: Add --pkg-version/-p to set specific version
2020-08-30 08:54:38 +02:00
Daniele Rondina
908b6d2bd4
cmd/tree/validate: Fix race and drop errs chan
2020-08-23 12:27:51 +02:00
Daniele Rondina
09c7609a7f
cmd/tree/validate: Add error summary
2020-08-20 11:36:56 +02:00
Daniele Rondina
a1acab0e52
cmd/tree/validate: Integrate validation of buildtime deps
...
By default both runtime and buildtime deps are checked.
With the option --only-buildtime is possible analyze only
buildtime deps or instead with the option --only-runtime
only the runtime deps.
Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
2020-08-20 11:09:39 +02:00
Ettore Di Giacinto
f676b50735
Tag 0.8.4
2020-08-05 19:37:32 +02:00
Ettore Di Giacinto
052a551c0c
Add "hidden" field to packages
...
Also drop residual of IsSet which isn't actually used
Related to #26
2020-08-02 11:31:23 +02:00
Ettore Di Giacinto
ffa6fc3829
Tag 0.8.3
2020-07-17 22:42:49 +02:00
Ettore Di Giacinto
07a1058ac1
Add cli option to skip packages if only metadata is present (without checking the image)
2020-07-17 22:42:03 +02:00
Ettore Di Giacinto
3af9109b99
Tag 0.8.2
2020-07-12 15:57:46 +02:00
Ettore Di Giacinto
5dcf77c987
Add package buildtimestamp and luet upgrade --sync
...
Annotate the package build time when compiling, and use that from the
client to force upgrade of packages that changed the artifact, but
didn't changed any version.
The client can trigger this behavior with `luet upgrade --sync`
2020-07-12 15:29:38 +02:00
Daniele Rondina
ee0e70ed3d
tree/pkglist: Now --deps orders for build/installation order
2020-07-05 10:44:47 +02:00
Daniele Rondina
e28a4753f8
tree/validate: Use --deps instead of --rdeps (we support also build deps)
2020-06-27 19:42:03 +02:00
Daniele Rondina
d1d7f5aa74
tree/pkglist: Add --rdeps option for runtime deps
2020-06-27 19:27:45 +02:00
Daniele Rondina
e2260b6956
Add --no-spinner option
2020-06-27 16:45:49 +02:00
Ettore Di Giacinto
764a09ce0c
Tag 0.8.1
2020-06-27 13:02:00 +02:00
Ettore Di Giacinto
16e9d7b20c
Use packageImage as builder image fingerprint
...
This allows to have an unique identifier for the builder image id against
different depgraphs combinations. The package fingerprint is not enough,
as an atom could have a difference deptree depending on the requires
constraints.
TODO: Don't use the full image name, but only the hash as a salt
(currently the salt contains ALSO a reference of the image-repository,
as such it doesn't allow to port a tree in a different docker registry)
2020-06-23 18:59:18 +02:00
Ettore Di Giacinto
ee3b59348e
Tag 0.8.0
2020-06-12 19:41:37 +02:00
Ettore Di Giacinto
6d68ed073d
Show and detect extensions with cobra-extensions
2020-06-12 17:54:57 +02:00
Ettore Di Giacinto
7b51e83902
Merge pull request #119 from mudler/config-protect
...
Integrate feature config-protect like Gentoo/Funtoo do
2020-06-07 11:33:55 +02:00
Ettore Di Giacinto
03cc5fcb76
Use cobra for build --full
2020-06-06 11:20:48 +02:00
Ettore Di Giacinto
8aafc7600c
Print selected packages
2020-06-06 11:18:54 +02:00
Daniele Rondina
cd903351b3
cmd/config: Add print of config protect data
2020-06-06 10:36:42 +02:00
Ettore Di Giacinto
90a25406a0
Add --full option to build
...
Don't compile dependencies when computing all the compilation specs from
a tree if are among the target deps
Fixes #41
2020-06-06 08:58:18 +02:00
Daniele Rondina
8f0c528c08
Create helpers.UntarProtect for handle protected files
...
Currently, it's used the archive.ReplaceFileTarWrapper
that requite a []byte of the files replaced. This is not
a good idea if files are big and instead could be better
in the near future reimplement ReplaceFileTarWrapper with
a callback that return io.Reader instead of []byte.
If a protected file is already present on target rootfs
it is created a file with the same prefix used in Gentoo:
._cfgXXXX_<filename>
2020-06-02 11:08:37 +02:00
Daniele Rondina
1d8a6174bb
Drop duplicate code for general.same_owner
2020-05-30 16:51:10 +02:00
Daniele Rondina
9e7c7e69f8
Review configuration file parsing logic
...
Luet support now these priorities on read configuration file:
- command line option (if available)
- $PWD/.luet.yaml
- $HOME/.luet.yaml
- /etc/luet/luet.yaml
2020-05-30 16:46:29 +02:00
geaaru
8c4f5b2911
Merge pull request #113 from mudler/annotations
...
Add Annotations to package spec
2020-05-23 10:52:32 +02:00
Daniele Rondina
dba6c361c2
Move helpers/cli to cmd/helpers
2020-05-23 08:51:33 +02:00
Ettore Di Giacinto
4197d7af61
Add upgrade by using only the SAT core
...
- Adds upgrade --universe and upgrade --universe --clean. It will
attempt to bring the system as much close as the content available in
the repositories. It differs from a standard upgrade which checks
directly that what is pulled in doesn't conflict with the system. In
this new way, we just query the SAT solver to decide that on our
behalf.
- Add uninstall --full-clean. It uses only the SAT solver to uninstall
the package and it will drop as many packages as required (including
revdeps of packages too.
2020-05-22 21:20:58 +02:00
Ettore Di Giacinto
bfde9afc7f
Add Nodeps and Full options to upgrade
2020-05-22 21:20:57 +02:00
Daniele Rondina
e38a4b3d9b
Use DefaultPackageSanitized struct for write specs
2020-05-20 09:59:48 +02:00
Ettore Di Giacinto
c0b432befa
Add development version
2020-05-16 22:46:29 +02:00
Ettore Di Giacinto
8e029a8ee4
Tag 0.7.8
2020-05-16 22:46:04 +02:00
Daniele Rondina
44213894bc
Add commands aliases
2020-05-10 20:24:08 +02:00
Daniele Rondina
a7d1381cb5
cmd/create-repo: Add support for multiple trees
2020-05-10 20:18:10 +02:00
Daniele Rondina
2cb79c0071
cmd/build: Add support for multiple trees
2020-05-10 20:02:12 +02:00
Daniele Rondina
13df161fc6
logging: permit to disable color and emoji
...
Now it's possible disable color and emoji on standard
output with:
$> luet <cmd> --color=false --emoji=false
Hereinafter, the list of changes:
* Added logging option logging.color (default true)
* Added logging option logging.enable_emoji (default true)
* Added persistent flag --color
* Added persistent flag --emoji
2020-05-09 10:08:21 +02:00
Daniele Rondina
fe5ab9246f
Added option for enable log to file.
...
Now it's possible logging to file is handled by the enable_logfile
option and by the path.
From cli is now possible:
* enable log to file with the option --enable-logfile
* modify the logfile path with the option --logfile/-l <path>
2020-05-09 10:05:34 +02:00
Daniele Rondina
993bcf9adf
tree/validate: Add support for in memory cache with solver check
2020-05-08 20:05:21 +02:00
Ettore Di Giacinto
1b529ea8c5
Add development version
2020-05-03 13:46:53 +02:00
Ettore Di Giacinto
2c2e6065d9
Tag 0.7.7
2020-05-03 13:46:35 +02:00
Ettore Di Giacinto
a1d8ef1422
Allow to partially uninstall a package graph, make uninstall --full optional
2020-05-03 13:04:34 +02:00
Ettore Di Giacinto
8dd756ec96
Add development version
2020-05-02 14:51:08 +02:00
Ettore Di Giacinto
1b6ffac7bd
Tag 0.7.6
2020-05-02 14:50:29 +02:00
geaaru
878e6d7b9c
Merge pull request #103 from mudler/tmpdir-cleanup
...
Tmpdir cleanup
2020-05-02 09:20:01 +02:00
Daniele Rondina
60d9017952
CleanupTmpDir() is not Fatal
2020-05-01 15:27:19 +02:00
Ettore Di Giacinto
b13828c883
Add development version
2020-04-30 22:50:37 +02:00
Ettore Di Giacinto
886cbd0036
Tag 0.7.5
2020-04-30 22:50:12 +02:00
Ettore Di Giacinto
b91288153a
Make tree validation cmd concurrent
2020-04-30 21:48:46 +02:00
Daniele Rondina
11944873ea
Integrate tmpdir_base params and tmpdirs cleanup
2020-04-30 20:29:28 +02:00
Ettore Di Giacinto
fb3c568051
Add development version
2020-04-24 19:46:35 +02:00
Ettore Di Giacinto
14bc26ee22
Tag 0.7.4
2020-04-24 19:46:14 +02:00
Ettore Di Giacinto
18ccdbd6a9
Add --revdep to luet pkglist
...
Include also the path in the results
2020-04-24 19:05:47 +02:00
Ettore Di Giacinto
7d960b733d
Add --revdep to luet search
...
Fixes #52
2020-04-24 19:05:24 +02:00
Ettore Di Giacinto
919b2c3cfc
Don't print misleading messages to the user
2020-04-24 19:04:21 +02:00
Ettore Di Giacinto
4cee27da7f
Fixup box CLI params and consume new box options
2020-04-20 23:03:03 +02:00
Ettore Di Giacinto
98876c8f20
Add support for env and hostmounts in box
2020-04-20 23:01:49 +02:00
Ettore Di Giacinto
20aa7c89f8
Use different result structs in pkglist
2020-04-19 11:37:23 +02:00
Ettore Di Giacinto
937609a9f4
Add machine readable output to pkglist
2020-04-19 11:24:41 +02:00
Ettore Di Giacinto
a3f0d848c9
Add builtime search to tree pkglist
2020-04-19 10:53:05 +02:00
Ettore Di Giacinto
62381ed46d
Structure search machine readable output
2020-04-19 10:31:07 +02:00
Ettore Di Giacinto
ac871cb0a3
Add --output option to search
...
In such way it can be parsed by scripts more easily.
It also disable the spinner based on loglevel
Fixes #92
2020-04-18 23:22:00 +02:00
Ettore Di Giacinto
82cd0e17b6
Enhance search output
2020-04-18 22:51:27 +02:00
Ettore Di Giacinto
1d5ce53443
Add luet box command
...
It adds only the 'exec' subcommand to spawn processes in custom boxes
Relates to #45
2020-04-18 11:43:14 +02:00
Ettore Di Giacinto
333b9cc023
Add reclaim to CLI
...
Relates to #86
2020-04-13 19:33:30 +02:00
Ettore Di Giacinto
32cf132a0c
Drop downloadOnly bool from Installer cli options
2020-04-13 19:32:50 +02:00
Daniele Rondina
1b8176777a
cmd/search: Add filter to result
2020-04-13 15:50:45 +02:00
Ettore Di Giacinto
2f3eabc3ca
Annotate git hash and time in displayed version
2020-04-12 14:37:49 +02:00
Ettore Di Giacinto
f987ee9fa0
Handle errors from os/user
...
We use it to generate defaults, if error is found, we imply preserve
permissions
2020-04-11 20:05:56 +02:00
Ettore Di Giacinto
0fe2a8c950
Add development version
2020-04-11 18:30:11 +02:00
Ettore Di Giacinto
9704992c43
Tag 0.7.3
2020-04-11 18:29:46 +02:00
Ettore Di Giacinto
d8919f7250
Check if dependencies are selectors in validate
2020-04-10 20:00:37 +02:00
Daniele Rondina
42c380029c
cmd/tree/validate: Fix order analysis
2020-04-10 17:41:27 +02:00
Daniele Rondina
c2e9176ab2
solver.Order now return error
2020-04-09 17:07:57 +02:00
Daniele Rondina
726a749b4b
cmd/tree/validate: Integrate order of the solution
2020-04-09 15:58:05 +02:00
Ettore Di Giacinto
6540dcc99d
Merge pull request #82 from mudler/packages_type
...
Add Packages type and Versioner interface
2020-04-04 17:28:49 +02:00
Ettore Di Giacinto
5e31d940f0
Introduce Packages for []Package
2020-04-04 14:29:08 +02:00
Daniele Rondina
42d1ec5585
cmd/tree/bump: Add --to-stdout option
2020-04-04 13:42:25 +02:00
Ettore Di Giacinto
1779382811
Extend tree validate checks
2020-03-29 14:52:13 +02:00
Daniele Rondina
9b61ed9e1d
Fix panic if luet is executed without args
2020-03-29 08:48:51 +02:00
Ettore Di Giacinto
aeb10338f6
Add development version
2020-03-28 17:32:06 +01:00
Ettore Di Giacinto
02653e03d8
Tag 0.7.2
2020-03-28 17:31:35 +01:00
Ettore Di Giacinto
92d335d5d1
Add exec command to cli
...
It is the entrypoint for box, to run commands with unshare
2020-03-28 16:58:59 +01:00
Daniele Rondina
98c7d5c450
cmd/create-repo: Fix default value of tree-compression
2020-03-27 08:59:52 +01:00
Daniele Rondina
454e9d934e
Use filename instead of name on repo specs
2020-03-24 19:40:11 +01:00
Daniele Rondina
202ed2651a
💥 Refactor and split repository.yaml file
2020-03-24 00:05:16 +01:00
Daniele Rondina
4e461fd6be
cmd/repo/update: Update only enabled repo
2020-03-23 23:40:27 +01:00
Ettore Di Giacinto
d5166c55ab
Lock only on commands that aren't meant to run in parallel
2020-03-22 15:19:08 +01:00
Ettore Di Giacinto
b2ba17f7f7
Add development version
2020-03-21 21:43:21 +01:00
Ettore Di Giacinto
3c5e144b8d
Tag 0.7
2020-03-21 21:39:12 +01:00
Daniele Rondina
c7652c8a70
Added labels
to package definition
...
* cmd/search: Add support for search of the packages
with a specific label.
* review Search method of Repositories for permit
different search modes.
* labels are k/v attributes and could be matched
through label key (with HasLabel method) or through
regex that use "$key" + "=" + "$value"
2020-03-21 19:24:27 +01:00
Daniele Rondina
fc40c770ab
Add 'tree bump' command
2020-03-16 22:18:48 +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
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
Daniele Rondina
a94e430a3b
cmd/tree/pkglist: Add --matches/-m flag
2020-03-13 18:08:49 +01:00
Daniele Rondina
82a17a1a22
Drop cfgFile print to improve bash integration
2020-03-08 00:13:45 +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
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
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
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
Ettore Di Giacinto
4648dedb55
Add --nodeps, --onlydeps and --force to Installer
...
This allows also to use it on upgrade and uninstall as it exposes the Installer options to the CLI.
See #48 , #49
2020-02-18 18:37:56 +01:00
Ettore Di Giacinto
2ce427d601
Add Nodeps, Onlydeps and Force options to Compiler
...
See #41
2020-02-18 18:36:44 +01:00
Ettore Di Giacinto
189c042fea
Add dev version tag
2020-02-17 18:04:36 +01:00
Ettore Di Giacinto
4e675723e8
Prepare for 0.6.1 tag
2020-02-17 18:04:05 +01:00