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

Give more information about yarn changeset #2293

Open
alexbakers opened this issue Nov 3, 2022 · 5 comments
Open

Give more information about yarn changeset #2293

alexbakers opened this issue Nov 3, 2022 · 5 comments

Comments

@alexbakers
Copy link

Hello, friends.

I created an adapter,

⚠️ NOTICE: Adapter changes must also have a changeset. Generate a changeset with 'yarn changeset' and include it in your commit.

but I can't run the command:

$ yarn changeset                  
🦋  error Error: Failed to find where HEAD diverged from master. Does master exist?
🦋  error     at getDivergedCommit (/Users/Jack/Developer/novaposhta-adapter/external-adapters-js/.yarn/cache/@changesets-git-npm-1.5.0-2b3630ea97-7208d5bff9.zip/node_modules/@changesets/git/dist/git.cjs.dev.js:67:11)
🦋  error     at async getChangedFilesSince (/Users/Jack/Developer/novaposhta-adapter/external-adapters-js/.yarn/cache/@changesets-git-npm-1.5.0-2b3630ea97-7208d5bff9.zip/node_modules/@changesets/git/dist/git.cjs.dev.js:199:22)
🦋  error     at async Object.getChangedPackagesSinceRef (/Users/Jack/Developer/novaposhta-adapter/external-adapters-js/.yarn/cache/@changesets-git-npm-1.5.0-2b3630ea97-7208d5bff9.zip/node_modules/@changesets/git/dist/git.cjs.dev.js:239:24)
🦋  error     at async add (/Users/Jack/Developer/novaposhta-adapter/external-adapters-js/.yarn/cache/@changesets-cli-npm-2.18.1-b00d4d209e-d893c5144c.zip/node_modules/@changesets/cli/dist/cli.cjs.dev.js:462:29)
🦋  error     at async run$2 (/Users/Jack/Developer/novaposhta-adapter/external-adapters-js/.yarn/cache/@changesets-cli-npm-2.18.1-b00d4d209e-d893c5144c.zip/node_modules/@changesets/cli/dist/cli.cjs.dev.js:1188:5)
@eddiejhong
Copy link
Collaborator

Hey Alex, may you please provide steps to repro this issue? If you have a PR for this new adapter, may you also please share a link to it?

@eddiejhong
Copy link
Collaborator

The yarn changeset command sometimes throws an error about the "master" branch, which may be resolved by checkout out "master" and pulling it.

@eddiejhong
Copy link
Collaborator

I looked into this briefly with @boxhock and it seems like .changeset/config.json may be misconfigured to use "baseBranch": "master", instead of "baseBranch": "develop",

@alexbakers
Copy link
Author

Thanks for the quick response.

#2294

Do I need to fix something?

@boxhock
Copy link
Contributor

boxhock commented Nov 7, 2022

Hi @alexbakers,

No need for you to fix anything.
To get changesets working, try git checkout master && git pull, then check out your branch again and run yarn changeset.

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

No branches or pull requests

3 participants