On some architectures, golang-go is a backport version with a tilde,
which is lower than just 2:1.13. Relax the build-dep to allow
backports of golang-go 1.13 to satisfy build-dep.
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
We already invoke dh_auto_build with GO111MODULE support on, pass the flag to
test too.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
The Debian Sid packaging disables calling `go generate`, thus the only place
where the snapd version information is generated is mkversion.sh call in
override_dh_auto_build. However, that calls happens after dh_auto_configure
which has mirrored the source tree under $PWD/_build, so the version file gets
written to a location that is not used during the build.
Fix this by setting the environment variable for output files location pointing
to the source tree under _build.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
The dependencies provided by the distro have different versions than what we
list in go.mod, which would require a complete rewriting of the file with
patches. For simplicity, just disable the modules altogether. Also disable go
generate and it's causing pain with how go is invoked.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Where needed use the pacakge import path as dh-goland does not enter the main
module directory. Pass Go invocation flags such that the go generate calls will
use the right flags. Pass -mod vendor where needed.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
The `snapd.apparmor.service` was not needed in debian because
it used a version of apparmor that would do the snapd apparmor
profile loading for us. However this support was dropped with
apparmor 3 and when it entered unstable this broke snapd.
This commit ensures it is shipped on debian too.
The `snapd.apparmor.service` was not needed in debian because
it used a version of apparmor that would do the snapd apparmor
profile loading for us. However this support was dropped with
apparmor 3 and when it entered unstable this broke snapd.
This commit ensures it is shipped on debian too.