Skip to content

Conversation

@mikeland73
Copy link
Collaborator

Summary

This is a possible cause of #881 (comment)

bin wrappers belong to a specific project so we should not have a single global hash.

How was it tested?

devbox shell
called binaries, inspected wrappers
devbox add curl
called binaries, inspected wrappers

@mikeland73 mikeland73 requested review from ipince and savil May 31, 2023 00:07
}

type createWrapperArgs struct {
devboxer
Copy link
Collaborator

Choose a reason for hiding this comment

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

where is this used?

Copy link
Collaborator

Choose a reason for hiding this comment

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

as in, I see you removed ProjectDir field and added devboxer field
I also see that you set these fields above.

But I don't see any callsites being updated that used to use createWrapperArgs.ProjectDir but now use createWrapperArgs.ProjectDir()

Copy link
Collaborator

Choose a reason for hiding this comment

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

ahh, its cause it is passed into go-templates and in go-templates the .ProjectDir can be used for fields and methods?

I hate go-templates.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I initially wanted to use it for ShellEnvHash function as well but that requires a context :(

@mikeland73 mikeland73 merged commit 6d7eb36 into main Jun 1, 2023
@mikeland73 mikeland73 deleted the landau/wrappers branch June 1, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants