Skip to content
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

Fix SDK Already Exists Detection #1284

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Fix SDK Already Exists Detection #1284

merged 1 commit into from
Feb 26, 2024

Conversation

JacksonWeber
Copy link
Contributor

Previous SDK Already Exists check failed upon testing in App Service Linux environments as there were instances of the old agent that broke my check.

New check looks for the "applicationinsights" package specifically under the "/home/site/wwwroot" path on Node versions > 8.9 (where the paths parameter was introduced).

Tested this change detects the path of the user's SDK in both Windows and Linux App Services from multiple starting paths inside and outside of the "/home" path. Also ensured that the check fails as expected if the application deployed to the App Service does not include the applicationinsights package.

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