serverless-sentry-plugin: Serverless deployment fails with "fatal: No names found, cannot describe anything."
Since the latest minor version change (from 2.3.0 to 2.4.0) the serverless deployment process on the project I am working on is failing with the following error message:
Error: Sentry: No Git available - Error: Command failed: git describe --exact-match --tags HEAD fatal: No names found, cannot describe anything.
It appears that the cause is running git describe on a git repository that has no tags; the repo I’m working on has no tags.
And I can see from https://github.com/arabold/serverless-sentry-plugin/commit/612f76dc085ca5604a7cb6f806e1886d49cbd91e#diff-1bcdce6971f2549017c3a649865c9921b7e765fb368eb43e78fbc373a779ba31 that this package is no longer suppressing errors.
Can you suggest how to proceed?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 23 (9 by maintainers)
v2.5.2 fixes the peer dependency now
I’m getting nuts here.
The same issue happens on my deployment (local dev machine to AWS). My current git branch does not have a tag yet. After I add one with
git tag 'TEST'it’s working fine. I would like not to have to do that beforehand (though its a one time fix).Finally! Yay! 🎉 Thank you for testing and verifying. I’m gonna close this issue then and go take a nap 😴
Seems 2.5.1 also has a bug. Damn it. I need a test project. I’m literally on a plane over the Atlantic right now 🙄
There’s a new
serverless-sentry-libv2.5.1 that I just published 5 minutes ago.@sentry/integrationsshould be a peer dependency now and needs to be installed in your project. Only that way I could handle compatibility with v7 for now.So, one last ask (sorry): Please update
serverless-sentry-libto v2.5.1 and then runnpm install @sentry/integrationsto install the new peer dependency, just to be sure. Then the errors should be gone. Sorry for the trouble.The webpack versions should be unrelated.
or maybe some of those
devDependenciesshould bedependencies?Ok, I’m back, and unfortunately we’re still getting an error:
Here’s what is in the
package.json, amongst other stuff of course:Have included a couple of other AWS-related packages, just in case they are significant.
Not missing anything obvious are we?
@arabold yep, just trying to repro now 😄
will post back here as soon as I’m done
Sorry about that. You should be able to install
@sentry/integrationsas a new dependency to your own project. It’s a peer dependency ofserverless-sentry-libnow to allow the use with@sentry/nodev7. I need to see if I can get rid of it completely 😦I don’t believe this is a problem with 2.5.0 anymore. It’s not explicit in the changelog but this case should be properly handled now. Please let me know if not.