Skip to content

gatsby plugin doesn't seem forward the release from the options to webpack #5424

Closed
@valyagolev

Description

@valyagolev

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/gatsby

SDK Version

"@sentry/gatsby": "^7.6.0",

Framework Version

"gatsby": "2.27.5",

Link to Sentry event

No response

Steps to Reproduce

  1. configure @sentry/gatsby in gatsby-config.js, set the release

  2. build gatsby in a very bare container where you have no git information

  3. see the build fail with

         Sentry CLI Plugin: Unable to determine version. Make sure to include `release` option or use the environment that supports auto-detection
    

https://docs.sentry.io/cli/releases/#creating-releases

  1. try setting all kinds of env variables, such as SENTRY_RELEASE
  2. see the build fail anyway
  3. look into the plugin code and realise that the release option never gets sent to webpack https://github.com/getsentry/sentry-javascript/blob/master/packages/gatsby/gatsby-node.js#L35

Expected Result

my app builds

Actual Result

my app doesn't build

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: gatsbyIssues related to the Sentry Gatsby SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions