Skip to content

refactor: use xx utilities and drop unused dependencies#653

Merged
jdx merged 2 commits intomainfrom
refactor/use-xx-utilities
Jan 31, 2026
Merged

refactor: use xx utilities and drop unused dependencies#653
jdx merged 2 commits intomainfrom
refactor/use-xx-utilities

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Jan 31, 2026

Summary

  • Replace which crate with xx::file::which() in config.rs
  • Remove unused getrandom direct dependency (it was declared but never used in source code)
  • Update xx submodule to v2.5.0

Test plan

  • cargo test passes
  • Pre-commit hooks pass

🤖 Generated with Claude Code


Note

Low Risk
Low risk: small refactor in pkl CLI detection plus dependency/lockfile cleanup; behavior should be equivalent aside from which resolution edge-cases.

Overview
Refactors run_pkl in src/config.rs to use xx::file::which("pkl") instead of the which crate when deciding whether to fall back to mise.

Cleans up dependencies by removing unused direct deps (getrandom, which) from Cargo.toml, and updates Cargo.lock with bumped crate versions (notably xx to 2.5.1) and removal of now-unneeded transitive crates.

Written by Cursor Bugbot for commit d40da5b. This will update automatically on new commits. Configure here.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@jdx jdx force-pushed the refactor/use-xx-utilities branch 2 times, most recently from 7179c23 to f49982a Compare January 31, 2026 18:55
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jan 31, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@jdx jdx force-pushed the refactor/use-xx-utilities branch from f49982a to 96e64a8 Compare January 31, 2026 19:09
- Replace `which` crate with `xx::file::which()` in config.rs
- Remove unused `getrandom` direct dependency
- Update xx submodule to v2.5.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jdx jdx force-pushed the refactor/use-xx-utilities branch from 96e64a8 to fba1249 Compare January 31, 2026 19:09
Includes fix for Windows same_file using stable API.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​clap@​4.5.54 ⏵ 4.5.569910093100100

View full report

@jdx jdx merged commit 81399fc into main Jan 31, 2026
18 checks passed
@jdx jdx deleted the refactor/use-xx-utilities branch January 31, 2026 19:55
@jdx jdx mentioned this pull request Jan 31, 2026
jdx added a commit that referenced this pull request Feb 1, 2026
### 🚀 Features

- **(init)** add auto-detection and interactive mode by
[@jdx](https://github.com/jdx) in
[#656](#656)
- **(stash)** use haiku names for stash patch backups by
[@jdx](https://github.com/jdx) in
[#655](#655)
- add git worktree support by [@jdx](https://github.com/jdx) in
[#651](#651)
- add "did you mean?" suggestions for typos by
[@jdx](https://github.com/jdx) in
[#654](#654)

### 🚜 Refactor

- use xx utilities and drop unused dependencies by
[@jdx](https://github.com/jdx) in
[#653](#653)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk release bookkeeping: mainly version string/package URL
updates and regenerated CLI docs, with no substantive runtime logic
changes.
> 
> **Overview**
> Releases **v1.35.0** by updating crate versions
(`Cargo.toml`/`Cargo.lock`) and adding the `1.35.0` entry to
`CHANGELOG.md`.
> 
> Regenerates documentation and examples to reference `v1.35.0` package
URLs and CLI version metadata, and updates `hk init` docs/usage to
include the new `--interactive` flag.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
46c426e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>
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.

1 participant