Give more information about yarn changeset
alexbakers opened this issue Β· comments
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)
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?
The yarn changeset command sometimes throws an error about the "master" branch, which may be resolved by checkout out "master" and pulling it.
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",
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
.