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

no Go files in /tmp/dh-make-golangXXXXXXXX #186

Open
sunmin89 opened this issue Sep 29, 2022 · 3 comments
Open

no Go files in /tmp/dh-make-golangXXXXXXXX #186

sunmin89 opened this issue Sep 29, 2022 · 3 comments

Comments

@sunmin89
Copy link

here is my system info

Distributor ID: Debian
Description:    Debian GNU/Linux bookworm/sid
Release:        unstable
Codename:       sid

when i make a deb go package with this command

 dh-make-golang github.com/helm/helm/tree/main/cmd/helm

it complains:

package github.com/helm/helm: no Go files in /tmp/dh-make-golang65739910/src/github.com/helm/helm
2022/09/29 21:54:32 Could not create a tarball of the upstream source: find mains: ["go" "list" "-f" "{{.ImportPath}} {{.Name}}" "github.com/helm/helm"]: exit status 1

the full output is here

2022/09/29 21:54:08 Starting "dh-make-golang v0.6.0 linux/amd64"
2022/09/29 21:54:08 Continuing with repository root "github.com/helm/helm" instead of specified import path "github.com/helm/helm/tree/main/cmd/helm" (repositories are the unit of packaging in Debian)
2022/09/29 21:54:08 Downloading "github.com/helm/helm/..."
2022/09/29 21:54:32 Determining upstream version number
2022/09/29 21:54:32 Found latest tag "v3.9.0-rc.1"
2022/09/29 21:54:32 INFO: master is ahead of "v3.9.0-rc.1" by 84 commits
2022/09/29 21:54:32 Package version is "3.9.0~rc1"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/cmd/helm expects import "helm.sh/helm/v3/cmd/helm"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/internal/ignore expects import "helm.sh/helm/v3/internal/ignore"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/internal/version expects import "helm.sh/helm/v3/internal/version"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/chartutil expects import "helm.sh/helm/v3/pkg/chartutil"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/engine expects import "helm.sh/helm/v3/pkg/engine"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/kube expects import "helm.sh/helm/v3/pkg/kube"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/lint expects import "helm.sh/helm/v3/pkg/lint"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/lint/rules expects import "helm.sh/helm/v3/pkg/lint/rules"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/lint/support expects import "helm.sh/helm/v3/pkg/lint/support"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/plugin expects import "helm.sh/helm/v3/pkg/plugin"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/plugin/cache expects import "helm.sh/helm/v3/pkg/plugin/cache"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/plugin/installer expects import "helm.sh/helm/v3/pkg/plugin/installer"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/provenance expects import "helm.sh/helm/v3/pkg/provenance"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/registry expects import "helm.sh/helm/v3/pkg/registry"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/releaseutil expects import "helm.sh/helm/v3/pkg/releaseutil"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/repo expects import "helm.sh/helm/v3/pkg/repo"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/storage expects import "helm.sh/helm/v3/pkg/storage"
code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/pkg/storage/driver expects import "helm.sh/helm/v3/pkg/storage/driver"
2022/09/29 21:54:32 WARNING: In findMains: ["go" "list" "-f" "{{.ImportPath}} {{.Name}}" "github.com/helm/helm/..."]: exit status 1
2022/09/29 21:54:32 Retrying without appending "/..." to repo
package github.com/helm/helm: no Go files in /tmp/dh-make-golang65739910/src/github.com/helm/helm
2022/09/29 21:54:32 Could not create a tarball of the upstream source: find mains: ["go" "list" "-f" "{{.ImportPath}} {{.Name}}" "github.com/helm/helm"]: exit status 1```

some package (ie.https://github.com/toorop/go-dkim)can be translated to debian package successfully, while some others failed, I can't find what's wrong.
@sunmin89
Copy link
Author


@anthonyfok
Copy link
Member

some package (e.g. https://github.com/toorop/go-dkim) can be translated to debian package successfully, while some others failed, I can't find what's wrong.

https://github.com/helm/helm uses Go module, and is named helm.sh/helm/v3 in the first line of its go.mod, where v3 means major version 3.

github.com/toorop/go-dkim, on the other hand, has not migrated to Go module (no go.mod file).

dh-make-golang v0.6.0 does not handle newer Go packages with specified major version (e.g. v2, v3) too well as its dependency resolution mechanism predates Go modules (GO111MODULE set to off explicitly), hence the warning messages:

code in directory /tmp/dh-make-golang65739910/src/github.com/helm/helm/cmd/helm expects import "helm.sh/helm/v3/cmd/helm"

Anyhow, your report seems like a duplicate of:

so I'll be closing this issue. Let's continue our discussions there at #135!

@anthonyfok
Copy link
Member

Duplicate of #135

@anthonyfok anthonyfok marked this as a duplicate of #135 Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants