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

Marshal() includes "default=" tags in EnvSet output #23

Closed
fg-j opened this issue Jul 29, 2022 · 1 comment · Fixed by #27
Closed

Marshal() includes "default=" tags in EnvSet output #23

fg-j opened this issue Jul 29, 2022 · 1 comment · Fixed by #27

Comments

@fg-j
Copy link

fg-j commented Jul 29, 2022

I'm interested in using env.Marshal() to facilitate logging the environment variables that are set in build configuration for several Paketo Buildpacks.

We'd like to use the default= tag on some of our configuration struct fields. But when I iterate over the output of env.Marshal(&myStruct) to log the values of the environment variables, I see that the tags default=* are included as keys in the EnvSet.

See this Go playground for an example of what I mean.

@fg-j fg-j changed the title Marshal() includes "default-" tags in EnvSet output Marshal() includes "default=" tags in EnvSet output Jul 29, 2022
@hinshun
Copy link
Contributor

hinshun commented Jul 29, 2022

@jimmykodes can you help with this?

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 a pull request may close this issue.

2 participants