Skip to content

Prevent source upload to upload anything in the folder #329

@Ortes

Description

@Ortes

When using upload_sources: true I see that dart pub run sentry_dart_plugin find all sources of type js map and dart in ./ but I have some files that do not needs to be uploaded in this case ./functions/** (firebase functions) how can I prevent this behavior ?

Command executed by dart pub run sentry_dart_plugin

INFO    2025-06-26 14:17:39.520689 +02:00 sentry-cli was invoked with the following command line: "[REDACTED_PATH]/sentry-cli" "--log-level" "info" "sourcemaps" "upload" "[REDACTED_PATH]/build/web" "--ext" "js" "--ext" "map" "--strip-prefix" "[REDACTED_PATH]" "--strip-prefix" "[REDACTED_PATH]" "--strip-prefix" "[REDACTED_PATH]" "./" "--ext" "dart" "--org" "[REDACTED_ORG]" "--project" "[REDACTED_PROJECT]"

Extract of logs:

> Found 12 files

> Found 16496 files

> Analyzing 16508 sources

> Rewriting sources

> Adding source map references

WARN    2025-06-26 14:17:42.774097 +02:00 Some source files don't have debug ids:
  WARN    2025-06-26 14:17:42.774121 +02:00 - ~/functions/node_modules/@eslint-community/eslint-utils/index.js
  WARN    2025-06-26 14:17:42.774123 +02:00 - ~/functions/node_modules/@eslint-community/regexpp/index.js
  WARN    2025-06-26 14:17:42.774124 +02:00 - ~/functions/node_modules/@firebase/component/dist/esm/index.esm2017.js
  WARN    2025-06-26 14:17:42.774125 +02:00 - ~/functions/node_modules/@firebase/component/dist/esm/index.esm5.js

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions