-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'strip_common_prefix' removing too much #162
Comments
This issue was opened at https://github.com/getsentry/sentry-fastlane-plugin, but I think it belongs here. |
thanks. I see this is probably because the loop is just making one-off calls to the CLI - https://github.com/getsentry/action-release/blob/master/src/main.ts#L48-L60C22 Maybe that parameter was intended to be used for all the files in one directory (to clean that path). When I passed two directories and assumed it would find the common of both - thats not how its working. Since it'll just map/format each entry in my list independently. I'll do some research into what the CLI can take, since if it can eat multiple sourcemaps at once - this might resolve itself. However,
|
I believe the Sentry CLI should be able to take multiple sourcemap paths at once. So, fixing might just be a matter of passing all the paths to the Sentry CLI at the same time in the plugin |
Environment
v1
Steps to Reproduce
Expected Result
Files would get uploaded stripping the common prefix (ie
public
), but instead get stripped way too much. If we look at the directory breakdown we have:Actual Result
Basically we see it stripped way more than I expect. I would imagine the only common difference between those two above paths is up to the
public
part.I expected to get files uploaded like:
assets/js/*.chunk.js
js/*.js
However, it stripped
assets/js
from the first andjs
from the 2nd. Which of course in my eyes is the reason the sourcemaps are not workingThe text was updated successfully, but these errors were encountered: