Tidy up environment variables
To avoid having to do a debug build in our release pipeline.
- Try to use constants instead of strings
- Move crypto seed override out of radicle-crypto
- Use GIT_COMMITTER_DATE for commit overrides
- Use RAD_LOCAL_TIME as general time override
- Allow variables to be used in release mode
18 files changed
+154
-126
deeb39c5
→
a3ffe51d
modified radicle-cli/src/commands/auth.rs
@@ -1,5 +1,4 @@
|
|
| - | |
|
|
|
|
|
@@ -9,7 +8,7 @@ use anyhow::anyhow;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -108,11 +107,11 @@ pub fn init(options: Options) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -199,7 +198,7 @@ pub fn authenticate(options: Options, profile: &Profile) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/src/terminal/format.rs
@@ -5,12 +5,12 @@ use localtime::LocalTime;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -74,8 +74,8 @@ pub fn policy(p: &Policy) -> Paint<String> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-cli/tests/commands.rs
@@ -1,6 +1,6 @@
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -11,7 +11,7 @@ use radicle::node::Handle as _;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -105,14 +105,14 @@ fn formula(root: &Path, test: impl AsRef<Path>) -> Result<TestFormula, Box<dyn s
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-cob/src/backend/git.rs
@@ -1,8 +1,8 @@
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
modified radicle-cob/src/backend/git/change.rs
@@ -308,11 +308,13 @@ fn write_commit(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-crypto/src/lib.rs
@@ -485,43 +485,6 @@ impl sqlite::BindableWithIndex for &Signature {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified radicle-crypto/src/ssh/keystore.rs
@@ -8,7 +8,7 @@ use cyphernet::{EcSk, EcSkInvalid, Ecdh};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -58,10 +58,16 @@ impl Keystore {
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -285,7 +291,11 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -306,7 +316,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -320,7 +330,11 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/test.rs
@@ -1,8 +1,8 @@
|
|
| + | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -17,7 +17,7 @@ use radicle::crypto::ssh::Keystore;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -144,7 +144,7 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/environment.rs
@@ -3,7 +3,7 @@ use std::mem::ManuallyDrop;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -24,7 +24,7 @@ use radicle::node::Database;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -413,11 +413,14 @@ impl<G: Signer + cyphernet::Ecdh> NodeHandle<G> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-remote-helper/src/lib.rs
@@ -120,7 +120,7 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/common.rs
@@ -19,27 +19,6 @@ use crate::storage::ReadRepository;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified radicle/src/cob/patch.rs
@@ -2686,6 +2686,7 @@ mod test {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2996,7 +2997,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -3012,7 +3013,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/patch/cache.rs
@@ -689,11 +689,12 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -709,14 +710,14 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -725,7 +726,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/test.rs
@@ -18,6 +18,7 @@ use crate::git::ext::commit::headers::Headers;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -203,9 +204,9 @@ impl<G: Signer> Actor<G> {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/thread.rs
@@ -632,6 +632,7 @@ mod tests {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -743,14 +744,14 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -810,14 +811,14 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/lib.rs
@@ -46,7 +46,3 @@ pub mod prelude {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
modified radicle/src/profile.rs
@@ -42,8 +42,38 @@ pub mod env {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -74,12 +104,44 @@ pub mod env {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -206,9 +268,14 @@ pub struct Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/storage/refs.rs
@@ -14,6 +14,7 @@ use thiserror::Error;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -309,17 +310,17 @@ impl SignedRefs<Verified> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|