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

Improve proxy support for install scripts #1432

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

rthorn-nr
Copy link
Contributor

@rthorn-nr rthorn-nr commented Feb 23, 2023

For install.sh and install.ps1, check for connectivity to https://download.newrelic.com and provide a helpful message if unable to connect.

For install.ps1, adds a proxy to the requesting WebClient via the optional environment variable HTTPS_PROXY, which will enable setting a proxy for the CLI download.

@rthorn-nr rthorn-nr requested a review from Julien4218 February 23, 2023 22:36
@rthorn-nr rthorn-nr self-assigned this Feb 23, 2023
@rthorn-nr rthorn-nr force-pushed the NR-68284/install-script-proxy-support branch from 31c13c8 to 239fe19 Compare February 23, 2023 22:37
@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Merging #1432 (dc948af) into main (4948ee5) will increase coverage by 0.06%.
The diff coverage is n/a.

❗ Current head dc948af differs from pull request most recent head a12b670. Consider uploading reports for the commit a12b670 to get more accurate results

@@            Coverage Diff             @@
##             main    #1432      +/-   ##
==========================================
+ Coverage   47.54%   47.61%   +0.06%     
==========================================
  Files         120      120              
  Lines        7163     7163              
==========================================
+ Hits         3406     3411       +5     
+ Misses       3622     3618       -4     
+ Partials      135      134       -1     
Impacted Files Coverage Δ
internal/utils/utils.go 37.50% <0.00%> (+4.80%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

scripts/install.ps1 Outdated Show resolved Hide resolved
Copy link
Contributor

@Julien4218 Julien4218 left a comment

Choose a reason for hiding this comment

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

@rthorn-nr I left a few comments.

@rthorn-nr rthorn-nr requested a review from Julien4218 February 24, 2023 01:45
Julien4218
Julien4218 previously approved these changes Feb 24, 2023
Copy link
Contributor

@Julien4218 Julien4218 left a comment

Choose a reason for hiding this comment

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

Approving after verifying on linux and windows with proxy.

chore: Add proxy connection message to ps1

chore: Add connection check & proxy message to sh

chore: Get proxy URL from env

chore: Move file dl to try block; output err
@rthorn-nr rthorn-nr merged commit 4c63130 into main Feb 24, 2023
@rthorn-nr rthorn-nr deleted the NR-68284/install-script-proxy-support branch February 24, 2023 21:40
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