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

build: fix Makefile dependencies for zz_generated.deepcopy.go to include code-generator which it uses #13647

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Sep 23, 2024

Motivation

I'd like to be able to make <whatever> and it just work.

$(GOPATH)/pkg/mod/k8s.io/[email protected]/generate-groups.sh is created as part of installing go-to-protobuf, but this is not a dependency of pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go which uses generate-groups.sh

If I change the version of code-generator in use I get

bash: /home/vscode/go/pkg/mod/k8s.io/[email protected]/generate-groups.sh: No such file or directory

Modification

I have added this as a direct dependency. We could have a make target of $(GOPATH)/pkg/mod/k8s.io/[email protected]/generate-groups.sh which might make things clearer, but I'm unconvinced it does, so I did the smaller change.

Verification

If I change the version of code-generator we use and install it will now do a rebuild zz_generated.deepcopy.go correctly.

@Joibel Joibel self-assigned this Sep 23, 2024
@Joibel Joibel changed the title build: missing makefile dependency build: fix Makefile dependencies for zz_generated.deepcopy.go to include code-generator which it uses Sep 23, 2024
@Joibel Joibel removed their assignment Sep 23, 2024
Copy link
Contributor

@blkperl blkperl left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! I was wondering why I was getting that error occasionally.

@blkperl blkperl added the area/build Build or GithubAction/CI issues label Sep 23, 2024
@MasonM
Copy link
Contributor

MasonM commented Sep 25, 2024

FYI: #13660 should fix the flaky test

Copy link
Member

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@agilgur5 agilgur5 merged commit 5c1b97f into main Sep 26, 2024
27 checks passed
@agilgur5 agilgur5 deleted the makefile-dep-2 branch September 26, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants