Sentry-cli --strip-prefix does not seem to work

sentry-cli releases files testCLIRelease upload-sourcemaps . --ext map --ignore node_modules --strip-prefix '~/dist/' --rewrite --strip-prefix 'dist'

–strip-prefix seems to have no effect whatsoever

artifacts are being uploaded as:
~/dist/10.a5b01fab658e826851b0.map
I want them to be uploaded as:
~/10.a5b01fab658e826851b0.map

I assumed that --strip-prefix ~/dist/ would solve this issue. I have not found anything in the docs to indicate this is wrong.

I have even taken a peek at the sentry-cli source code: https://github.com/getsentry/sentry-cli/blob/master/src/commands/releases.rs#L762

can anybody offer some suggestions?
sentry-cli v1.37.0

1 Like

anyone?

I am having the exact same problem, trying to remove my prefix src. I think a tried all possible combinations of --strip-prefix and --rewrite. Would be awesome with some attention from Sentry, as this makes uploaded source maps useless.

Same issue here. Anyone from sentry going to investigate this?