Skip to content

Don't parse env on convert command - #578

Merged
sudermanjr merged 1 commit into
masterfrom
sudermanjr/disable-env-parsing-convert
Apr 22, 2022
Merged

sudermanjr merged 1 commit into
masterfrom
sudermanjr/disable-env-parsing-convert

Conversation

@sudermanjr

Copy link
Copy Markdown
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

@sudermanjr
sudermanjr requested a review from lucasreed as a code owner April 22, 2022 16:08
@sonarqubecloud

Copy link
Copy Markdown

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

@lucasreed lucasreed left a comment

Copy link
Copy Markdown
Contributor

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