-
Notifications
You must be signed in to change notification settings - Fork 79
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
bug with dh-make-golang estimate: src/ folder does not exists #159
Comments
The error does not occur with these little changes applied:
However, instead it will fail only shortly after, with the following error.
I am unsure if it is at all related, or an issue of its own. The file permissions for |
When packaging Debian library it is common practice to be on Debian unstable (sid) and install dh-make-golang using APT, so you are sure to have the latest up-to-date dependencies installed. Maybe you can try again in a VM for example? |
I can reproduce the error on an up-to-date debian sid, with dh-make-golang installed from the repos. |
What's the output of |
|
That's definitely strange. I'm running dh-make-golang v0.4.0 with go 1.15.9 and I haven't face the same issue as you. Can you maybe try to run estimate on another repository and see if it works?
for example. |
i picked two random ITPs from wnpp.debian.net, getting mixed results:
|
**```
|
As support for the gopath mode of "go get" has been removed in latest versions of Go, we cannot use the GO111MODULE=off trick any more. To fix the estimate command, we now download the sources of the repo manually then run "go mod tidy" in the repo dir to make use of the information contained in the go.mod file and download the dependencies. For go packages that are not modules yet, we init ourselves a go module using "go mod init". Closes: Debian#159 Closes: Debian#231
As support for the gopath mode of "go get" has been removed in latest versions of Go, we cannot use the GO111MODULE=off trick any more. To fix the estimate command, we now download the sources of the repo manually then run "go get" in the repo dir to make use of the information contained in the go.mod file and download the dependencies. For go packages that are not modules yet, we init ourselves a go module using "go mod init". Closes: Debian#159 Closes: Debian#231
As support for the gopath mode of "go get" has been removed in latest versions of Go, we cannot use the GO111MODULE=off trick any more. To fix the estimate command, we now download the sources of the repo manually then run "go get" in the repo dir to make use of the information contained in the go.mod file and download the dependencies. For go packages that are not modules yet, we init ourselves a go module using "go mod init". Closes: Debian#159 Closes: Debian#231
When running
dh-make-golang estimate github.com/caddyserver/caddy
, it will fail shortly with the following error:2021/03/19 11:43:14 lstat /tmp/dh-make-golang225762394/src: no such file or directory
The problem as it seems to me is that
go get
does not download the source files tosrc/
, but instead everything lands inpkg/mod
. I understand the change in the download directory was introduced in v1.12 and is default as of v1.13, see here: golang/go#31529I can reproduce the error with
GO111MODULE
set to off, on and auto. I am using ubuntu 20.10 with go v. 1.14 and can reproduce the error with both dh-make-golang v0.3.3 and v0.4.0On debian buster with go v. 1.11
dh-make-golang estimate github.com/caddyserver/caddy
seems to run fine (but will eventually fail because of a missing core library that the package depends on but that was indroduced with go v1.13 😞).The text was updated successfully, but these errors were encountered: