Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

IgnoreMissing doesnt work #586

Closed
Closed

Description

@fiCeVitka

Version

@nuxtjs/sentry: 7.3.0
nuxt: 2.15.8
@sentry/webpack-plugin: 1.20.1

Sentry configuration

sentry: {
    dsn: KEY,
    disabled: isLocal,
    publishRelease: {
      authToken: process.env.SENTRY_AUTH_TOKEN,
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      setCommits: {
        auto: true,
        ignoreMissing: true
      },
      ignore: [
        'node_modules',
        '.nuxt/dist/client/img'
      ],
    },
    logMockCalls: false,
    sourceMapStyle: 'hidden-source-map',
    config: {
      environment: process.env.APP_ENV,
      release: process.env.GIT_COMMIT_SHA,
      captureUnhandledRejections: false,
    },
    clientConfig: {
      attachProps: true,
      trackComponents: true,
    },
  },

Steps to reproduce

I build project on the one commit hash twice (one on stage server and one on prod).

What is Expected?

Second build should be successful too

What is actually happening?

First build is successful, second catches build error:

ERROR in Sentry CLI Plugin: Command failed: ../node_modules/@sentry/cli/sentry-cli releases set-commits {hash} --auto --ignore-missing
error: No commits found. Change commits range, initial depth or use --ignore-empty to allow empty patch sets.

Activity

  1. rchl commented on Jun 16, 2023

    @rchl
    Contributor

    Maybe you want ignoreEmpty:

        /**
         * When the flag is set and the previous release commit was not found in the repository, will create a release
         * with the default commits count(or the one specified with `--initial-depth`) instead of failing the command.
         */
        ignoreMissing?: boolean;
        /**
         * When the flag is set, command will not fail and just exit silently if no new commits for a given release have been found.
         */
        ignoreEmpty?: boolean;
    
  2. fiCeVitka commented on Jun 16, 2023

    @fiCeVitka
    Author

    @rchl you are right, thank you! I missed this flag in docs. I'll close the issue

  3. locked and limited conversation to collaborators on Jun 18, 2023
  4. converted this issue into a discussion #587 on Jun 18, 2023
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions