fix: generated Rust files are .rs, not .rust - #3
Merged
Merged
Conversation
… copy - comline-core -> 488dc12 (ComlineProject/core#22): generator extension is now `rs`, so `comline generate` writes main.rs not main.rust - tests: assert main.rs/other.rs; fixture_project() now copies only config.idp + src/ so a locally-generated .comline/ or *.rs in the fixture dir can't break the suite - fixture .gitignore also ignores generated *.rs / *.rust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
comline generatewas writingmain.rust/other.rust. The extensioncomes from
comline-core'sfind_generator; fixed there inComlineProject/core#22 (merged). This bumps the
comline-corepin to pick itup, so
generatenow writesmain.rs.Also hardens the test fixture copy:
fixture_project()now copies onlyconfig.idp+src/, so a.comline/store or generated*.rsleft intests/fixtures/simple_project/by a localcomlinerun can't break thesuite (this is what happened during manual testing). The fixture's
.gitignoreignores generated output too.cargo test(17),cargo clippy --all-targets -- -D warnings,cargo fmt --checkall green. Manually confirmedgenerate --target rustwritesmain.rsandcleanremoves it.