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

Don't parse env on convert command #578

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

sudermanjr
Copy link
Member

This PR fixes #577

Checklist

  • I have signed the CLA
  • I have updated/added any relevant documentation

Description

What's the goal of this PR?

When running reckoner convert, we shouldn't parse environment variables

What changes did you make?

Added a package variable to disable env parsing

What alternative solution should we consider, if any?

There's likely a cleaner way to do this, I'm not overly happy about using a global for this, but due to the extreme ways in which we have to have to handle yaml, this may be necessary

@sonarcloud
Copy link

sonarcloud bot commented Apr 22, 2022

Kudos, SonarCloud Quality Gate passed!    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

Copy link
Contributor

@lucasreed lucasreed left a comment

Choose a reason for hiding this comment

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

I can't think of a better way to do this either without introducing a new struct that is only for env parsing and even then I'm not 100% sure that would be pretty either.

It's really striking how much of this course package revolves around unmarshaling and environment variable parsing. I'm not sure there's a better way, but it still feels weird.

@sudermanjr sudermanjr merged commit b43e06d into master Apr 22, 2022
@sudermanjr sudermanjr deleted the sudermanjr/disable-env-parsing-convert branch April 22, 2022 18:31
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.

reckoner convert should not parse environment variables
2 participants