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

ASPNETCORE_ENVIRONMENT takes now precedence over DOTNET_ENVIRONMENT #614

Merged
merged 3 commits into from
Dec 29, 2020

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Dec 12, 2020

@snakefoot snakefoot added the bug label Dec 12, 2020
@snakefoot snakefoot added this to the 4.9.4 milestone Dec 12, 2020
@snakefoot
Copy link
Contributor Author

Maybe Azure Pipelines Config must be changed to use Nuget 5.8.0 ?

@snakefoot snakefoot mentioned this pull request Dec 12, 2020
@snakefoot
Copy link
Contributor Author

Close and re-open to trigger rebuild

@snakefoot snakefoot closed this Dec 27, 2020
@snakefoot snakefoot reopened this Dec 27, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@304NotModified 304NotModified modified the milestones: 4.9.4, 4.10 Dec 28, 2020
@304NotModified
Copy link
Member

304NotModified commented Dec 28, 2020

I think this small behavior change needs a minor version bump. Im not 100% sure this is a bug and afraid of the "hidden" change.

@304NotModified 304NotModified modified the milestones: 4.10, 4.9.4 Dec 28, 2020
@304NotModified
Copy link
Member

It would be nice if we could unit test this. :)

@snakefoot
Copy link
Contributor Author

It would be nice if we could unit test this. :)

Not sure how to perform mocking with extension-methods.

@304NotModified
Copy link
Member

A yes good one. You can't mock extensions (as it's syntactic sugar), the underlying calls should be mocked for that

@snakefoot
Copy link
Contributor Author

snakefoot commented Dec 28, 2020 via email

@304NotModified 304NotModified self-requested a review December 28, 2020 23:24
@304NotModified
Copy link
Member

I've created a new PR for the license, as we needed that also for other repos and thats easier to track (now and in the futher)

@304NotModified 304NotModified changed the title ASPNETCORE_ENVIRONMENT should take precedence over DOTNET_ENVIRONMENT ASPNETCORE_ENVIRONMENT takes now precedence over DOTNET_ENVIRONMENT Dec 28, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@304NotModified
Copy link
Member

you're right about the mocking. Environment.GetEnvironmentVariable can't be mocked easily, and if we do, we still can't assert something good as LoadConfigurationFromFile could not be tested easily.

To for now we keep it like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants