Skip to content

Changes not detected by changeset cli 2.23.1 #869

Closed

Description

@danielgangverk

Affected Packages

@changesets/cli: 2.23.1

Problem

When running changeset in the cli after having made changes in a package, no changes are detected. That is, all packages are listed as unchanged.
image

When running the same command in version 2.22.0, the changes are detected and the package is suggested in the cli.

Config

{
  "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
  "changelog": ["@changesets/changelog-github", { "repo": "PRIVATE_REPO" }],
  "commit": false,
  "fixed": [],
  "linked": [],
  "access": "restricted",
  "baseBranch": "main",
  "updateInternalDependencies": "patch",
  "ignore": []
}

Proposed solution

Activity

  1. slinkardbrandon commented on Jul 13, 2022

    @slinkardbrandon

    I am having this same issue, its interesting because changeset status still works, but the add command isn't detecting properly for some reason.

    $ changeset status --since=main
    🦋 error Some packages have been changed but no changesets were found. Run changeset add to resolve this error.
    🦋 error If this change doesn't need a release, run changeset add --empty.

    $ changeset add
    🦋 Which packages would you like to include? …
    ◯ unchanged packages

  2. glasser commented on Jul 13, 2022

    @glasser
    Contributor

    I'm seeing this too. Note that it's specifically 2.23.1 that causes the issue (2.23.0 is fine). Sees likely that #744 is to blame? Probably this line: https://github.com/changesets/changesets/pull/744/files#r920335959

  3. BarryThePenguin commented on Jul 21, 2022

    @BarryThePenguin

    I had the same problem, came here and found this issue, updated to 2.23.2 and it looks like that fixed the problem. Thanks! 🎉

  4. Andarist commented on Jul 21, 2022

    @Andarist
    Member

    This was a problem only briefly and got fixed in 2.23.2

  5. buquan commented on Feb 14, 2023

    @buquan

    This was a problem only briefly and got fixed in 2.23.2

    it appeared again at 2.26, need your reply, thanks

  6. Andarist commented on Feb 14, 2023

    @Andarist
    Member

    Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.

  7. buquan commented on Feb 14, 2023

    @buquan

    Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given

    ok i would create demo in codesandbox recently thanks alot

  8. christopher-francisco commented on Apr 18, 2023

    @christopher-francisco

    @buquan we're seeing the same issue. Wondering if you were able to create the codesandbox?

  9. rossipedia commented on Jul 9, 2023

    @rossipedia

    Hitting this also on 2.26.1, I'll see if I can provide a git repo that reproduces the issue. I believe it's related to devDependencies

    • Edit •

    Ok this is solved: The packages I were expecting didn't have a version field in the package.json. Adding that version field let changeset start including it in the list of packages to select.

    It'd be nice if changeset offered a warning when it found a package without a version field, unless it was also listed in the ignore config option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions