1
Fork 0
Commit Graph

38 Commits (main)

Author SHA1 Message Date
Motiejus Jakštys e6d1a95c02 upgrade to go 1.20
use errors.Join
2023-05-19 15:05:21 +03:00
Motiejus Jakštys 4408a9e005 rootfs: remove ./ prefix from filenames
I've seen a container (private one) whose filenames start with ./, but
the layer name does not have the prefix, causing undocker to fail.

Let's always normalize the names to not have the prefix.
2022-06-09 14:22:21 +03:00
Motiejus Jakštys dc03b29e6e Revert "add WithFilePrefix"
This reverts commit 436a866f5d.

This is not a good place for such auxiliary functionality; will be moved
elsewhere.
2021-08-29 18:40:11 +03:00
Motiejus Jakštys f02af98ac5 nit: shorter defer body 2021-08-29 18:39:43 +03:00
Motiejus Jakštys 436a866f5d add WithFilePrefix
This adds an option to prefix every file path with a given string.
2021-08-29 16:55:32 +03:00
Motiejus Jakštys 34a4ebfeaa additional error check 2021-08-19 16:32:22 +03:00
Motiejus Jakštys f1566184cf determine gzip archives from magic values
instead of guessing.
2021-08-13 15:27:44 +03:00
Motiejus Jakštys 3d6f45f81c lint 2021-06-01 09:00:27 +03:00
Motiejus Jakštys 2f484824fb update README and misc files 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 7f2293859b more robust manifest <-> tarball handling 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 861f0d319a remove multierr dependency 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 9ca0d8019c simplify flattener api 2021-05-24 00:11:58 +03:00
Motiejus Jakštys e2cf760c12 remove ByteCounter from rootfs 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 6c3943a3cc move tw initialization later 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 59ab408601 commentary 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 1e745bdea1 rename discarder to proxyWriter 2021-05-24 00:11:58 +03:00
Motiejus Jakštys d61e0a58f1 naming 2021-05-24 00:11:58 +03:00
Motiejus Jakštys fd244bfc23 read gzip archives 2021-05-24 00:11:58 +03:00
Motiejus Jakštys a45e512697 byteCounter tests 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 98fd78bb50 bytecounter 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 69bf4d7074 report name on failing untar 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 7f9d150a33 wip xz/commander 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 98373a151d Rootfs is now a struct 2021-05-24 00:11:58 +03:00
Motiejus Jakštys eb9f4d5400 preliminary unit tests 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 02cec0f76f make Tree private 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 8dedaebcf7 move tree/ to rootfs/ 2021-05-24 00:11:58 +03:00
Motiejus Jakštys b76a500f2e wip lxc-config 2021-05-24 00:11:58 +03:00
Motiejus Jakštys ae9c197be0 docs 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 628b178e23 start using tree 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 0f08cef777 add tree 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 4c7afb8afa doc 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 3d960c235f retain original dirs 2021-05-24 00:11:58 +03:00
Motiejus Jakštys fac91d84e2 prevent bugs in tests easier 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 25df146ca5 fix unit test; use pax 2021-05-24 00:11:58 +03:00
Motiejus Jakštys 9e1d2601ac adding tests 2021-05-24 00:11:57 +03:00
Motiejus Jakštys dff0a38206 add some tests 2021-05-24 00:11:57 +03:00
Motiejus Jakštys b49779600c wip rootfs tests 2021-05-24 00:11:57 +03:00
Motiejus Jakštys 3279b52973 move rootfs to its own package 2021-05-24 00:11:57 +03:00