-
Notifications
You must be signed in to change notification settings - Fork 12
Add ts dev lint domains + ts dev install-hooks #733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b0b6bd5
da2cfcf
d374930
773d6ea
212b220
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,9 @@ workspace = true | |
| [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
| chromiumoxide = { workspace = true } | ||
| clap = { workspace = true } | ||
| derive_more = { workspace = true, features = ["display"] } | ||
| edgezero-cli = { workspace = true } | ||
| error-stack = { workspace = true } | ||
| futures = { workspace = true } | ||
| log = { workspace = true } | ||
| regex = { workspace = true } | ||
|
|
@@ -32,6 +34,20 @@ trusted-server-core = { workspace = true } | |
| url = { workspace = true } | ||
| which = { workspace = true } | ||
|
|
||
| # `ts dev lint domains` and `ts dev install-hooks` drive all git access through | ||
| # gitoxide (no `git` subprocess). Cross-host: the linter runs in CI on every | ||
| # target. Versions verified via `cargo tree -p gix -p gix-config` to avoid | ||
| # duplicate versions in the lock file. | ||
| gix = { version = "0.83", default-features = false, features = [ | ||
| "blob-diff", | ||
| "index", | ||
| "revision", | ||
| "sha1", | ||
| # Fixture repos in the unit tests construct trees via gix-only APIs. | ||
| "tree-editor", | ||
| ] } | ||
| gix-config = "0.56" | ||
|
|
||
| # `ts dev proxy` is macOS-only — CA trust via the login keychain, Safari | ||
| # automation via `networksetup`, and a native TLS / networking stack. Scoping | ||
| # these dependencies to macOS keeps unsupported targets (notably the | ||
|
|
@@ -41,9 +57,7 @@ which = { workspace = true } | |
| [target.'cfg(target_os = "macos")'.dependencies] | ||
| base64 = { workspace = true } | ||
| bytes = { workspace = true } | ||
| derive_more = { workspace = true } | ||
| directories = { workspace = true } | ||
| error-stack = { workspace = true } | ||
| http-body-util = { workspace = true } | ||
| hyper = { workspace = true, features = ["http1", "server", "client"] } | ||
| hyper-util = { workspace = true, features = ["tokio"] } | ||
|
|
@@ -62,4 +76,7 @@ tokio = { workspace = true, features = ["test-util"] } | |
| x509-parser = { workspace = true } | ||
|
|
||
| [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] | ||
| assert_cmd = "2" | ||
| predicates = "3" | ||
| temp-env = { workspace = true } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ♻️ refactor — Proposed fix (apply manually — dropping the line also rewrites [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
assert_cmd = "2"
predicates = "3"
-temp-env = { workspace = true }
tempfile = { workspace = true }then |
||
| tempfile = { workspace = true } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 thinking — These four (
gix,gix-confighere,assert_cmdandpredicatesin dev-dependencies) are the only direct deps in the workspace declared with inline versions; the root[workspace.dependencies]centralizes 95 others, and every other crate uses{ workspace = true }. The comment explains why the versions are pinned, which is the valuable part — but with the version living in a leaf manifest, a second crate that later wantsgix(an integration-tests harness, say) can silently resolve a different minor and reintroduce the duplicate-version problem this comment is guarding against.Moving the four version specs to
[workspace.dependencies]and keeping the feature list plus the rationale comment here (gix = { workspace = true, features = [...] }) preserves the intent and makes the pin enforceable workspace-wide. Non-blocking — flagging it because the comment implies the pin matters more than a leaf manifest can guarantee.