forked from vhaudiquet/rhema-together
build: depend on the Rhema crates by version
The manifest pointed at `../rhema`, so a build needed that checkout beside the repository. CI cloned it in two jobs and the Dockerfile cloned a tag and rewrote the paths. The committed lock had drifted to 0.5.1 entries after the framework bumped to 0.5.2, so the first cargo command in a clean tree rewrote it. All twelve crates are on crates.io at 0.5.2, so the manifest names that version and the lock pins it. The clone steps, the `RHEMA_REF` argument, and the path rewrite are gone from the workflows and the image. Moving the framework now means `cargo update` on the `rhema-*` packages.
This commit is contained in:
1 parent
89aca58364
commit
b5babb682e
8 files changed
+103
-69
No files matched your search
@@ -32,9 +32,9 @@ docker build -t registry.example.com/rhema-together:0.1.0 .
|
||||
docker push registry.example.com/rhema-together:0.1.0
|
||||
```
|
||||
|
||||
The Dockerfile clones the Rhema framework at `v0.5.1` because this
|
||||
repository consumes its crates by path. Override the pin with
|
||||
`--build-arg RHEMA_REF=<tag>` if you move the framework.
|
||||
`Cargo.lock` pins the Rhema crates, so the image builds the same
|
||||
framework version on every run. Move the crates together with
|
||||
`cargo update -p rhema-core` and the other `rhema-*` packages.
|
||||
|
||||
## Values
|
||||
|
||||
|
||||
Reference in new issue
Block a user