-
Notifications
You must be signed in to change notification settings - Fork 76
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
How to handle dependencies #131
Comments
This is the error message in buildlog:
|
The Debian way is to prepare the dependencies as packages as well. So you'll have to identify the dependencies and prepare packages for them as well. Once you have created those you can include them either by installing them in your build environment. It should all be described here. |
The dh-make-golang is intended to make a Debian package in the official Debian archive, which has our own packaging policy, like the dependencies should be packaged first. If you just want to upload package to Launchpad, you can use other methods, which can be very flexible. |
Hi @markose, are you Marko Seidenglanz of https://bitbucket.org/modima/dbsync2 ? The name dbsync2 looks familiar for some reason. :-) I couldn't find a place to file an issue at your Bitbucket repo, so I'll write to you here:
and github.com/knadh/koanf itself depends on github.com/rhnvrm/simples3 If dbsync2 is generally useful, I think it is worthwhile to get it into Debian, as it is only 4 packages including dbsync2 to get into Debian, so that dbsync2 would eventually flow into Ubuntu universe and other Debian or Ubuntu derivatives. If you'd like that, we could work together to get dbsync2 into Debian. What do you think?
and it stops there without actually getting anything. How about using
so it does dbsync2 and its dependencies, but notice how Go completely ignores the supposed 1.2.7 version and went on to use its own pseudo-version Recent versions of dh-make-golang do warn about this to:
|
@zhsj is there any way around that at all re packaging all individual dependencies? I'm looking into packaging for https://github.com/caddyserver/caddy and requiring all dependencies to be packaged individually is too big of a maintenance burden. Could we set up a separate git repo where we use For the time being, we're going to release We'd love to get Caddy in official debian repos, but we need help to do it. |
If you want to package caddy for the official repo, yes, to package every dependency separately is desired. To bundle all the dependencies in one source package is possible, but that's not the thing we want in official repo. |
@francislavoie if I read your profile correctly, you're part of caddy upstream. I think you may interested in https://bugs.debian.org/810890 and http://bugs.debian.org/954793 And, this repo's issue is not watched by most Debian developers. The debian-go(at)lists.debian.org list is better place to seek helps. |
Thanks for those links - we were aware that people have attempted to get Caddy in official distro in the past, but as far as I know, they never contacted the Caddy project. Also as an aside, personally, I'm not a fan of mailing lists for communication, there are much better methods in the year 2020. Hence why I asked here first. So from what I understand, we'd need to validate that every one of the dependencies listed in our Ultimately the only thing Caddy needs to distribute is the statically compiled binary, a default config, a default |
But it's off-topic here. And you need to live with mailing list if you want to work with Debian people...
There're alread many dependencies which have been packaged, like the golang.org/x/*, cloud.google.com/go, many github.com/xx. I bet you don't want to review these libraries' license and copyright again in the vendor directory. Just to mention that it's required to review every single file's license in the source package.
Yes, I'm well aware of it, and I was a caddy user :) |
Hello,
I have another question.
I've created a package for launchpad, but the build fails, because of missing dependencies. Where do I have to specify external go modules that I include so it can be fetched during build step?
Regards,
Marko
The text was updated successfully, but these errors were encountered: