Skip to content

Commit

Permalink
Delete vestigial last_run.uuid file
Browse files Browse the repository at this point in the history
This file gets written with a random UUID every time you download the
schema. The line that writes it was added in #119 along with a special
`cargo:rerun-if-changed` command to control if Cargo is rerun. However,
that check was removed in #1166. (And then this entire update procedure
was moved from `build.rs` to an explicitly-run `xtask` command in #1424.)

So it seems like this file is completely vestigial at this point and
doesn't need to be updated when you update the schema.
  • Loading branch information
glasser committed Nov 14, 2024
1 parent d508196 commit 3afe0e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/rover-client/.schema/last_run.uuid

This file was deleted.

2 changes: 0 additions & 2 deletions xtask/src/commands/prep/main_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const SCHEMA_DIR: &str = "./crates/rover-client/.schema";
pub async fn update() -> Result<()> {
let schema_dir = Utf8PathBuf::from(SCHEMA_DIR);
Fs::create_dir_all(&schema_dir)?;
let last_run_uuid = Uuid::new_v4().to_string();
Fs::write_file(schema_dir.join("last_run.uuid"), last_run_uuid)?;

let hash_path = schema_dir.join("hash.id");

Expand Down

0 comments on commit 3afe0e9

Please sign in to comment.