Skip to content

CRWA: Move git init to include yarn.lock #8956

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

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

Tobbe
Copy link
Contributor

@Tobbe Tobbe commented Jul 24, 2023

When creating a new Redwood app and selecting to initialize a git repo you always end up with an untracked yarn.lock file

image

This PR makes sure git initialization happens after the lock file has been created.

Screenshot from after my fix (notice that git status no longer lists yarn.lock as untracked)
image

@jtoar This one is probably good to get in as soon as possible

@Tobbe Tobbe added the release:fix This PR is a fix label Jul 24, 2023
@Tobbe Tobbe added this to the v6.0.0 milestone Jul 24, 2023
Copy link
Contributor

@jtoar jtoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works greats, yarn 3 accounted for in my local testing.

@jtoar jtoar merged commit 2e48806 into redwoodjs:main Jul 25, 2023
jtoar pushed a commit that referenced this pull request Jul 26, 2023
When creating a new Redwood app and selecting to initialize a git repo
you always end up with an untracked yarn.lock file


![image](https://github.com/redwoodjs/redwood/assets/30793/63044ce0-89bb-4781-99a0-29d06ad8ff22)

This PR makes sure git initialization happens after the lock file has
been created.

Screenshot from after my fix (notice that `git status` no longer lists
yarn.lock as untracked)

![image](https://github.com/redwoodjs/redwood/assets/30793/708a7b40-cd37-487b-97a3-8129b2c22c61)

@jtoar This one is probably good to get in as soon as possible
@Tobbe Tobbe deleted the tobbe-crwa-git-init-last branch July 26, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants