Skip to content

Use github token environment variable with HttpClient - #3460

Merged
forki merged 2 commits into
fsprojects:masterfrom
martyn-osborne:master
Dec 19, 2018
Merged

forki merged 2 commits into
fsprojects:masterfrom
martyn-osborne:master

Conversation

@martyn-osborne

Copy link
Copy Markdown
Contributor

The PAKET_GITHUB_API_TOKEN environment variable wasn't being used by the HttpClient implementation, which seems to be used mostly everywhere by default now.

@forki

forki commented Dec 18, 2018

Copy link
Copy Markdown
Member

mhm can't build locally:

image

Comment thread src/Paket.Core/Common/NetUtils.fs Outdated
env = "true" || env = "yes" || env = "y"

let createHttpClient (url,auth:Auth option) =
let githubToken = Environment.GetEnvironmentVariable "PAKET_GITHUB_API_TOKEN"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks like this is a bit off

@martyn-osborne

martyn-osborne commented Dec 19, 2018 •

Copy link
Copy Markdown
Contributor Author

@forki updated; Visual Studio liked it, but the build script didn't!

Have also extracted it out into a private function, since it was being fetched in 3 places now

@forki
forki merged commit 5c5fd6e into fsprojects:master Dec 19, 2018
@forki

forki commented Dec 19, 2018 via email

Copy link
Copy Markdown
Member

@forki

forki commented Dec 19, 2018

Copy link
Copy Markdown
Member

I have to revert that change since it seems to create a new issue: #3461

Can you please take a look?

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.

3 participants