Skip to content

Commit

Permalink
Search and destroy everything related to master.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x committed Mar 7, 2024
1 parent 871f077 commit cb67c90
Show file tree
Hide file tree
Showing 15 changed files with 466 additions and 904 deletions.
2 changes: 0 additions & 2 deletions enclone_com/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

[dependencies]
enclone_core.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions enclone_exec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

[[bin]]
name = "enclone"
Expand Down
42 changes: 0 additions & 42 deletions enclone_exec/tests/enclone_test1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,48 +186,6 @@ fn test_css_existence() {

// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

// 4. Make sure that if sync_master was run, nothing would change.
//
// A bit ugly because of duplicated code.

#[cfg(not(feature = "cpu"))]
#[test]
fn test_sync_master() {
let mut version = HashMap::<String, String>::new();
let f = open_for_read!["../master.toml"];
for line in f.lines() {
let s = line.unwrap();
if !s.starts_with('#') && s.contains("=") {
version.insert(s.before(" = ").to_string(), s.after(" = ").to_string());
}
}
let all = read_dir("..").unwrap();
for f in all {
let f = f.unwrap().path();
let f = f.to_str().unwrap();
let toml = format!("{}/Cargo.toml", f);
if path_exists(&toml) {
let g = open_for_read![&toml];
for line in g.lines() {
let s = line.unwrap();
if s.contains(" =") {
let cratex = s.before(" =").to_string();
if version.contains_key(&cratex) {
let t = format!("{} = {}", cratex, version[&cratex]);
if t != s {
eprintln!("\nFound change in {}.\nold: {}\nnew: {}", toml, s, t);
eprintln!("You probably need to run sync_to_master\n");
panic!("failed");
}
}
}
}
}
}
}

// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

// 5.

// Run the download command on the landing page and make sure it works.
Expand Down
2 changes: 0 additions & 2 deletions enclone_help/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

[dependencies]
ansi_escape.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions enclone_main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

[dependencies]
dirs.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions enclone_paper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "../LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

# To keep compile time down, this file should *not* access the enclone crate.

Expand Down
2 changes: 0 additions & 2 deletions enclone_tail/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

# To keep compile time down, this file should *not* access the enclone crate.

Expand Down
2 changes: 0 additions & 2 deletions enclone_tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ edition = "2018"
license-file = "LICENSE.txt"
publish = false

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.

[dependencies]
amino.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions enclone_tools/src/bin/README
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
PROGRAM PURPOSE
------------------------------------------------------------------------------
build_help_pages build help pages for enclone site
cargo_update_safe update crate versions
check_masters find inconsistencies between master.toml files
dup_crates find duplicated crates
merge_html built html files for the 10x site
release_nanny used by release process
review_main_tests walk through main tests and allow results changes
run_last_test if you've just added a main test
rustfmt_del fast formatting of everything
start_release used to start release process
sync_to_master changes Cargo.toml files to match master.toml
update_all_main_tests update all main tests, use with caution

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
Expand Down
Loading

0 comments on commit cb67c90

Please sign in to comment.