Skip to content

WIP: deepcopy-gen: hack to ensure directory name is set #3342

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

justinsb
Copy link
Contributor

@justinsb justinsb commented Jul 1, 2022

When we use --input-dirs ./... deepcopy-gen / defaulter-gen cannot
determine the package name, it appears (unless GOPATH is set).

Instead use the fully-qualified path as we're using for other
generators.

../<dirname> also works but is not consistent with our other
generators.

@justinsb justinsb changed the title deepcopy-gen: hack to ensure directory name is set WIP: deepcopy-gen: hack to ensure directory name is set Jul 1, 2022
justinsb added 2 commits July 1, 2022 07:29
When we use `--input-dirs ./...` deepcopy-gen / defaulter-gen cannot
determine the package name, it appears (unless GOPATH is set).

Instead use the fully-qualified path as we're using for other
generators.

`../<dirname>` also works but is not consistent with our other
generators.
@justinsb justinsb force-pushed the nopath_generators branch from 3504620 to 7a80814 Compare July 1, 2022 11:29
@justinsb
Copy link
Contributor Author

justinsb commented Jul 1, 2022

Let's not merge yet, I'm trying to figure out all the intricacies here!

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