Skip to content

Conversation

@markushi
Copy link
Member

@markushi markushi commented Apr 11, 2024

Fixes #686

Created a base task for all our sentry-cli based tasks.
During task execution the cli is then extracted if the computed path does not exist.

📜 Description

💡 Motivation and Context

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

@markushi markushi changed the title Create SentryCliExecTask base task, extract cli right before task exe… Extract sentry-cli on-demand Apr 11, 2024
@markushi markushi changed the title Extract sentry-cli on-demand Fix sentry-cli not being extracted prior to task execution Apr 11, 2024

internal fun searchCliInResources(resourcePath: String): String? {
val resourceURL = javaClass.getResource(resourcePath)
val resourceFile = resourceURL?.let { File(it.file) }
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm really not sure why this was done this way 😅 Shouldn't it be fine to just null check the resourceURL?

Copy link
Member

Choose a reason for hiding this comment

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

yeah I also don't know, null check should be fine I guess 👍

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

LGTM, great work!

@markushi markushi merged commit 4209cea into main Apr 15, 2024
@markushi markushi deleted the fix/extract-cli-on-demand branch April 15, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants