Skip to content

Conversation

@nyurik
Copy link
Contributor

@nyurik nyurik commented Jun 3, 2025

  • properly add all crates to the workspace cargo.toml as members
    • except fuzz because it still has some issues, TBD
  • use quotes around true and false to ensure there is no bool confusion
  • remove a few leftover readme comments
  • mark all unpublishable crates as publish = false to avoid accidental publishing
  • Add uutests to the main workspace
  • Update very old dependencies of the tests/benches/factor

* properly add all crates to the workspace cargo.toml as members
  * except `fuzz` because it still has some issues, TBD
* use quotes around `true` and `false` to ensure there is no bool confusion
* remove a few leftover readme comments
* mark all unpublishable crates as `publish = false` to avoid accidental publishing
* Add `uutests` to the main workspace
@github-actions
Copy link

github-actions bot commented Jun 3, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Cargo.toml Outdated
xattr = { workspace = true }

# Specifically used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
# Specifically, used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see why you would add a comma here, but I think that's not quite right. It should be read more as in "Used specifically in ..."

Cargo.toml Outdated
expr = { optional = true, version = "0.1.0", package = "uu_expr", path = "src/uu/expr" }
factor = { optional = true, version = "0.1.0", package = "uu_factor", path = "src/uu/factor" }
false = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" }
"false" = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it worked before right? Are toml keys not guaranteed to be strings? I think they should be according to https://toml.io/en/v1.0.0#keys

@tertsdiepraam
Copy link
Member

Nice cleanup!

@nyurik
Copy link
Contributor Author

nyurik commented Jun 3, 2025

@tertsdiepraam I modified the comment (there was another minor grammmar nit) - hope its better now. WRT the keys - it did work before, but IntelliJ IDEA was flagging it (incorrectly) - so this was to placate it. I am ok to revert that if you think it is not needed.

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Jun 4, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@nyurik
Copy link
Contributor Author

nyurik commented Jun 4, 2025

As noticed by @cakebaker in #8056 (comment), uu_factor_benches was using very old dependencies, so updated that as well.

@github-actions
Copy link

github-actions bot commented Jun 4, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

"src/uucore",
"src/uucore_procs",
"src/uuhelp_parser",
"tests/benches/factor",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is very rarely used, why list it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this forces all crates to still be part of the regular compilation / validation / linting, use the same dependencies, gets regular updates, etc. I.e. prevent bitrot - unless it is not needed and should be deleted?

@sylvestre sylvestre merged commit 60c55d7 into uutils:main Jun 6, 2025
74 checks passed
@nyurik nyurik deleted the crate-nits branch June 6, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants