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

Delete and ignore Cargo.lock #8

Closed
wants to merge 4 commits into from
Closed

Conversation

GitGhillie
Copy link
Collaborator

Afaik libraries should not have their Cargo.lock in the repository (see bevy repo for example).
When I cloned and built this repo I got some weird regex parsing errors until I deleted Cargo.lock and rebuilt.

Salzian and others added 4 commits March 13, 2023 22:56
Bumps [xml-rs](https://github.com/kornelski/xml-rs) from 0.8.4 to 0.8.14.
- [Changelog](https://github.com/kornelski/xml-rs/blob/main/Changelog.md)
- [Commits](kornelski/xml-rs@0.8.4...0.8.14)

---
updated-dependencies:
- dependency-name: xml-rs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Salzian
Copy link
Owner

Salzian commented Sep 15, 2023

Good catch! This is my first library and totally an oversight on my side. According to the cargo book, libraries, like this repo, should ignore the Cargo.lock file.

As the example project provides an example of a basic application, I think the Cargo.lock file should maybe stay in that case? So the gitignore should only reference the root lock file. What do you think?

@Salzian Salzian assigned Salzian and GitGhillie and unassigned Salzian and GitGhillie Sep 15, 2023
@Salzian
Copy link
Owner

Salzian commented Sep 15, 2023

Oops, sorry with the assignees. Force of habit 😅

@GitGhillie
Copy link
Collaborator Author

As the example project provides an example of a basic application, I think the Cargo.lock file should maybe stay in that case? So the gitignore should only reference the root lock file. What do you think?

True, but if you agree with #9 then I don't think it's worth it to fix this anymore. Because that PR removes the need for Cargo.toml and Cargo.lock in examples altogether

@Salzian
Copy link
Owner

Salzian commented Sep 15, 2023

Then I'll take a look at #9 first.

@Salzian
Copy link
Owner

Salzian commented Sep 16, 2023

Can you take a look if there's something in here that's still relevant?

@GitGhillie
Copy link
Collaborator Author

All fixed with #10

@GitGhillie GitGhillie closed this Sep 16, 2023
@GitGhillie GitGhillie deleted the fmod branch September 29, 2023 15:01
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.

3 participants