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

go generate generate.go used for first generate #173

Merged
merged 1 commit into from
Oct 5, 2021
Merged

go generate generate.go used for first generate #173

merged 1 commit into from
Oct 5, 2021

Conversation

unique1o1
Copy link
Contributor

@unique1o1 unique1o1 commented Oct 5, 2021

When go generate ./... is first used, the pie binary might not have been installed on the user's system while trying to generate code for the internal types, since the command will not only create the pie templates but also try to generate code for the internal types. Which will generate an error executable file not found in $PATH

So changing the first command to go generate generate.go will only create the pie templates and then go install will proceed to install the binary and the third and final command go generate ./... will use the newly created templates
to update the generated code


This change is Reviewable

@elliotchance elliotchance merged commit c536eaf into elliotchance:master Oct 5, 2021
elliotchance pushed a commit that referenced this pull request Oct 6, 2021
Added DropWhile() function which is similar to `dropwhile()` function from `itertools` in Python. The `DropWhile()` function drops items from the slice while `f(item)` function returns `true`.

Also used go generate in the README since go generate generate.go doesn't work from #173.
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