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

fix(stdlib): generate placeholder.go file when needed #4954

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

nathanielc
Copy link
Contributor

Go's vendoring semantics mean we need all Flux packages to also be Go
packages. This change handles that logic. This is similar to the
flux_gen.go solution we had previously, but different in one key way.
The contents of placeholder.go are static. This means we do not need to
treat them as special binary files or otherwise. Additionally the new
name of placeholder.go is clear what its purpose is.

Finally a test to cmd/flux/ for test extension was added as that is how this was discovered.

Done checklist

  • docs/SPEC.md updated
  • Test cases written

@nathanielc nathanielc requested review from a team as code owners July 1, 2022 16:09
@nathanielc nathanielc requested review from Rahul-Vasan, noramullen1, scbrickley and a team and removed request for a team July 1, 2022 16:09
Go's vendoring semantics mean we need all Flux packages to also be Go
packages. This change handles that logic. This is similar to the
flux_gen.go solution we had previously, but different in one key way.
The contents of placeholder.go are static. This means we do not need to
treat them as special binary files or otherwise. Additionally the new
name of placeholder.go is clear what its purpose is.
@nathanielc nathanielc merged commit 64ae871 into master Jul 1, 2022
@nathanielc nathanielc deleted the fix/stdlib-generate branch July 1, 2022 17:00
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.

2 participants