Skip to content

Conversation

whatyouhide
Copy link
Collaborator

No description provided.

@@ -56,9 +56,12 @@ defmodule Mix.Tasks.Sentry.PackageSourceCode do
def run(args) do
{opts, _args} = OptionParser.parse!(args, strict: @switches)

# We can read the config here because this task depends on the `app.config` task.
config = Application.get_all_env(:sentry)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the way we cache config, loading app.config is not enough, we also need to validate it in Sources.load_files/1. We don't want to start the :sentry application for this task anyways.

Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there another test that covers the source code reporting logic?

@whatyouhide
Copy link
Collaborator Author

@sl0thentr0py yes there are other tests 🙃

@whatyouhide whatyouhide merged commit 73dda9a into master Nov 23, 2023
@whatyouhide whatyouhide deleted the al/fix-package-task branch November 23, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants