1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 15:45:53 +01:00
Commit Graph

25 Commits

Author SHA1 Message Date
Colin Walters
856e480cb7 cli: Don't emit ANSI codes to stderr
It seems the tracing crate is broken in this respect. Digging
through best practices, `anstream` is used by clap and looks sane.
We're basically just following their example.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-05-29 14:54:13 -04:00
John Eckersberg
ca7b38f699 Rewrite containers org links to bootc-dev org
Literally just find and replace github.com/containers/bootc with
github.com/bootc-dev/bootc

We have the redirect in place so none of this is really important, but
I figure removing as many instances of the old repo and replacing them
with the current can't hurt for things like search engine
optimization.  Plus some non-zero number of people might assume one is
a fork of the other or something.

Signed-off-by: John Eckersberg <jeckersb@redhat.com>
2025-05-22 09:07:36 -04:00
Omer Tuchfeld
2fd0458bb6 cli: align package.metadata.vendor-filter
No reason for it to be different than what we have in the root
Cargo.toml

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2025-02-06 01:49:36 +01:00
Omer Tuchfeld
104f919792 cli: remove clap dependency
The CLI crate does not use clap directly, so it does not need to
depend on it.

It does use it indirectly, through the our lib crate

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2025-02-06 01:49:29 +01:00
Omer Tuchfeld
3425e9bdb2 cli: add a utility function for initializing tracing
Refactor the tracing initialization code into a utility function, so
that it can be shared with future CLIs that we'll add.

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2025-02-06 01:49:09 +01:00
Colin Walters
c947f0a58d tree: Cleanup and bump rust-version to 1.82
To match composefs-rs.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-03 09:10:37 -05:00
Colin Walters
d05c1432b5 Switch systemd generator to be a dispatcher shell script
rpm can't handle hardlinked binaries with distinct labels today
gracefully; ostree (and bootc) always break the hardlink which
I think is generally right.

Anyways, switch to a dispatcher shell script to fix this.

To fix https://issues.redhat.com/browse/RHEL-76188

Signed-off-by: Colin Walters <walters@verbum.org>
2025-01-24 12:57:58 -05:00
Colin Walters
9140bf100d lib: Bump version to 1.1.0
We'll support all APIs and features we have now for the forseeable
future.

Why not 1.0.0? Just to avoid making this version feel too "special".

Signed-off-by: Colin Walters <walters@verbum.org>
2024-10-15 19:25:22 -04:00
Colin Walters
97692bd1c2 Make lints stricter, apply crate wide
Add `dead_code = "deny"` to our default lints; we had
a compiler warning for this in main.

Fix the warning by moving the human readable test code into
`#[cfg(test)]`.

While we're here, move the other lib.rs lints into the crate;
enforcing docs for *everything* at first I thought might be heavy
handed but actually is fine as it only applies to things that
are `pub`, of which we don't actually have that much so it
mainly forced me to add some stub docs for the modules, which
is probably a good idea.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-09-18 13:10:49 -04:00
Colin Walters
0c6ccad8dd Bump MSRV to 1.79
It's what's in c9s right now, and I want to make use of a
newer API.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-07-30 10:34:27 -04:00
Colin Walters
f5edb0b016 main: Set HOME very early on if unset
This works around bootc-image-builder not setting HOME, in combination
with `podman` bombing if it's unset.

Needed for bound images as part of bootc-image-builder.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-07-22 14:50:45 -04:00
Colin Walters
63bcf63868 build: Use workspace global lints
In relatively recent rust there's a nice way to globally
configure clippy lints for the whole workspace. We can
kill the `custom-lints` target because relatively
recently clippy has a lint for `todo!` and `dbg!` itself.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-07-17 13:48:12 -04:00
Colin Walters
c67b9acb2f build-sys: Switch to workspace dependencies
Prep for addding another crate, where I want to avoid
duplicating all the versions again.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-07-16 13:41:03 -04:00
Platform Engineering Bot
031c5f1272 fix(deps): update all patch dependencies
Signed-off-by: Platform Engineering Bot <platform-engineering@redhat.com>
2024-05-01 17:08:14 +02:00
John Eckersberg
02b6f439d8 Cargo.toml: Update repository URL to containers org
Signed-off-by: John Eckersberg <jeckersb@redhat.com>
2024-04-10 14:22:15 -04:00
Brad P. Crochet
1b12b64dd3 feat(build): Add extra version information
Simple build-time code generation for now. Plan to add git info from the
environment if it exists.

Fixes #361

Signed-off-by: Brad P. Crochet <brad@redhat.com>
2024-03-22 12:09:53 -04:00
null
dff05c81f0 fix(deps): update rust crate log to 0.4.21
Signed-off-by: null <platform-engineering@redhat.com>
2024-03-05 18:18:27 +00:00
renovate[bot]
a04fc3e505 fix(deps): update all patch dependencies
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-11 20:09:40 +00:00
Alex Jia
1831ab6018 docs: fix typos
Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
2024-02-04 11:47:55 +08:00
Colin Walters
9ba1c133cf Update to clap 4.2
Just keeping up with things.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-05-21 10:13:38 -04:00
Colin Walters
c07145a5aa Tweak default tracing output
Do log `info` level by default, but quiet the output format.
Prep for more use of tracing.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-02-13 20:29:17 -05:00
Colin Walters
e2f808f42e cli: Update tracing-subscriber to 0.3
On general principle, but specifically it has better APIs
for `EnvFilter`.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-02-12 11:31:47 -05:00
Colin Walters
b274b315c2 Add cargo xtask and packaging infrastructure
First, this adds `cargo xtask` following
https://github.com/matklad/cargo-xtask/

We use this to write "external glue scripts" in Rust, not bash.
Specifically we now have e.g. `cargo xtask vendor` which just
wraps running `cargo vendor-filterer`.

Then build on that and add `cargo xtask package-srpm` which generates
a `.src.rpm`.

And build on that by adding the requisite glue to have Fedora's COPR
be able to understand it, so that we can get auto-built and shipped
packages there.

This will make trying out bootc a bit easier.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-01-19 19:52:55 -05:00
Colin Walters
96235751dd Enable cargo vendor-filterer
Add configuration and a GH action post-push which automatically
generates a vendor tar.

Signed-off-by: Colin Walters <walters@verbum.org>
2022-12-07 11:25:30 -05:00
Colin Walters
3ab28788ce Initial code split from https://github.com/ostreedev/ostree-rs-ext/pull/412
Prep for potentially moving to github.com/containers/bootc
2022-11-30 15:14:04 -05:00