Bug 2264202 - errors when building helm 3.14
Summary: errors when building helm 3.14
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-k8s-kubectl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2175110
TreeView+ depends on / blocked
 
Reported: 2024-02-14 14:12 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2024-06-21 16:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-21 16:39:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2024-02-14 14:12:57 UTC
Description of problem:
helm package fails to build with an error pointing to kubectl package.

Version-Release number of selected component (if applicable):
1.22.0-11.fc40

How reproducible:
Always

Steps to Reproduce:
1. Try building the https://rathann.fedorapeople.org/wip/helm/golang-helm-3-3.14.0-1.fc41.src.rpm in rawhide mock

Actual results:
/usr/share/gocode/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:32:12: pattern translations: no matching files found

Expected results:
Successful build.

Additional info:
Apparently, the above error can be fixed by adding
%global gosupfiles pkg/util/i18n/translations/OWNERS

to kubectl spec:
https://rathann.fedorapeople.org/wip/helm/golang-k8s-kubectl-1.22.0-11.fc41.src.rpm

Once that's in the buildroot, I get the following error:
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/b839/_pkg_.a -trimpath "$WORK/b839=>" -p github.com/rubenv/sql-migrate -complete -installsuffix shared -buildid ALirRMtNSQOZxcUZKqba/ALirRMtNSQOZxcUZKqba -goversion go1.22.0 -c=4 -shared -nolocalimports -importcfg $WORK/b839/importcfg -pack /usr/share/gocode/src/github.com/rubenv/sql-migrate/doc.go /usr/share/gocode/src/github.com/rubenv/sql-migrate/migrate.go
# helm.sh/helm/v3/pkg/kube
_build/src/helm.sh/helm/v3/pkg/kube/client.go:106:12: cannot use cmdutil.NewFactory(getter) (value of type "k8s.io/kubectl/pkg/cmd/util".Factory) as Factory value in struct literal: "k8s.io/kubectl/pkg/cmd/util".Factory does not implement Factory (wrong type for method Validator)
		have Validator(bool) ("k8s.io/kubectl/pkg/validation".Schema, error)
		want Validator(string) ("k8s.io/kubectl/pkg/validation".Schema, error)
_build/src/helm.sh/helm/v3/pkg/kube/client.go:344:32: undefined: metav1.FieldValidationIgnore
_build/src/helm.sh/helm/v3/pkg/kube/client.go:346:32: undefined: metav1.FieldValidationStrict
_build/src/helm.sh/helm/v3/pkg/kube/client.go:364:32: undefined: metav1.FieldValidationIgnore
_build/src/helm.sh/helm/v3/pkg/kube/client.go:366:32: undefined: metav1.FieldValidationStrict
_build/src/helm.sh/helm/v3/pkg/kube/wait.go:53:14: undefined: wait.PollUntilContextCancel
_build/src/helm.sh/helm/v3/pkg/kube/wait.go:71:14: undefined: wait.PollUntilContextCancel

This probably requires updating kubectl and possibly other packages to 1.27 because of this commit in helm:
https://github.com/helm/helm/commit/b9361407a36e0f85ba7833b6b2804a21c1a409cc#diff-137bba79988de442c1fde0fc29520d6d7e5a5239ceac82f5439a5bf513ebb2d4

Comment 1 Dominik 'Rathann' Mierzejewski 2024-02-14 14:14:13 UTC
My COPR with helm update attempt: https://copr.fedorainfracloud.org/coprs/rathann/helm/build/7013839/ .

Comment 2 Fedora Admin user for bugzilla script actions 2024-05-09 00:09:49 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Maxwell G 2024-06-21 16:39:35 UTC
Automation has figured out the package is retired in Fedora Rawhide.

If you like it to be unretired, please open a ticket at
https://pagure.io/releng/new_issue?template=package_unretirement


Note You need to log in before you can comment on or make changes to this bug.