Skip to content

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