Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
-
configure
@sentry/gatsby
ingatsby-config.js
, set therelease
-
build gatsby in a very bare container where you have no git information
-
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
- try setting all kinds of env variables, such as
SENTRY_RELEASE
- see the build fail anyway
- 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