-
Notifications
You must be signed in to change notification settings - Fork 109
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
docs: Improve CONTRIBUTING.md #800
base: master
Are you sure you want to change the base?
docs: Improve CONTRIBUTING.md #800
Conversation
This text was apparently accidentally moved in 7eb8873.
There is no need to build the whole workspace, using `-p typos-dict` spares the contributor from needlessly building 261 crates.
The instructions previously instructed the contributor to run `SNAPSHOTS=overwrite cargo test` which will however fail when the added entry is duplicate with: thread 'codegen' panicked at 'Duplicate present: ...' Duplicates have to be removed by firstly running the verify test with SNAPSHOTS=overwrite before you should try running the code generation. These were actually the steps before they were changed in 7eb8873 (which appears to have been an oversight).
@@ -41,11 +41,11 @@ Otherwise, to add to the dictionary: | |||
|
|||
Format: `typo,correction[,correction...]` | |||
|
|||
2. Code-gen the dictionary | |||
2. Verify (and postprocess) the dictionary | |||
|
|||
With `cargo` and `rustfmt` installed, run |
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.
This instruction is for the code-gen one
|
||
With `cargo` and `rustfmt` installed, run | ||
```console | ||
$ SNAPSHOTS=overwrite cargo test -p typos-dict | ||
$ SNAPSHOTS=overwrite cargo test -p typos-dict verify | ||
``` | ||
(we do development-time code-gen to speed up builds) |
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.
This belongs in the code-gen section
@@ -41,11 +41,11 @@ Otherwise, to add to the dictionary: | |||
|
|||
Format: `typo,correction[,correction...]` | |||
|
|||
2. Code-gen the dictionary | |||
2. Verify (and postprocess) the dictionary |
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.
I think the original intention was to run both steps here and then in Step 3, run the command to verify everything is resolved.
There is the annoying aspect though of needing to run verify before codegen
@not-my-profile, @epage It looks like this has been stale for a bit. Mind if I open a new PR to address the feedback so we can eventually get these changes through to acceptance? |
Please review this commit by commit and see the individual commit messages for an explanation of the changes.