Skip to content
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

+typos #2971

Merged
merged 3 commits into from
Aug 20, 2023
Merged

+typos #2971

merged 3 commits into from
Aug 20, 2023

Conversation

kevinmichaelchen
Copy link
Contributor

@kevinmichaelchen kevinmichaelchen commented Aug 19, 2023

A CLI for catching typos in your source code.

https://github.com/crate-ci/typos

@kevinmichaelchen
Copy link
Contributor Author

cargo install is failing with a "virtual manifest" error

+ cargo install --locked --path . --root /Users/kevin.c/.tea/crates.io/typos/v1.16.6
error: found a virtual manifest at `/Users/kevin.c/dev/open-source/pantry/builds/crates.io∕typos-1.16.6+darwin/Cargo.toml` instead of a package manifest

@jhheider
Copy link
Contributor

Yup: https://github.com/crate-ci/typos/blob/master/Cargo.toml

Multiple packages under crates/. You probably want either:

- cargo install --locked --path crates/typos-cli --root {{prefix}}

or

- run: cargo install --locked --path . --root {{prefix}}
   working-directory: crates/typos-cli

depending on legibility preferences. If it's the only command you need, you can move working-directory: up a level:

build:
  ...
  working-directory: crates/typos-cli
  script: cargo install --locked --path . --root {{prefix}}

@kevinmichaelchen kevinmichaelchen marked this pull request as ready for review August 20, 2023 01:02
@jhheider jhheider merged commit f7d4349 into pkgxdev:main Aug 20, 2023
19 checks passed
@kevinmichaelchen kevinmichaelchen deleted the new/crates.io/typos branch August 20, 2023 13:59
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.

2 participants