← Back to issue list

godeps plugin does not installing the git package by itself

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1671546
Type
issue
State
closed
Author
~xavi-garcia-mena
Labels
Created
Updated
Closed

Current evaluation

Closed without a fix. The godeps plugin fails to install git automatically, causing go get to fail. Users must manually add git to build-packages as a workaround.

Suggested action:

No scores available.

Issue body

This happened when building on launchpad. The godeps plugin should install git. I tried to add git in the build-packages section and it works as a workaround. This is a build example: https://code.launchpad.net/~xavi-garcia-mena/+snap/godeps-test This is the end of the build log: go: missing Git command. See https://golang.org/s/gogetcmd package github.com/rogpeppe/godeps: exec: "git": executable file not found in $PATH Command '['/bin/sh', '/tmp/tmp2w8ecs_k', 'go', 'get', 'github.com/rogpeppe/godeps']' returned non-zero exit status 1 go get github.com/rogpeppe/godeps Traceback (most recent call last): File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 202, in main builder.pull() File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 139, in pull env=env) File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 92, in run_build_command self.chroot(["/bin/sh", "-c", command], echo=echo) File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 66, in chroot "/usr/bin/sudo", "/usr/sbin/chroot", self.chroot_path] + args) File "/usr/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-26732/chroot-autobuild', 'linux32', '/bin/sh', '-c', 'cd /build/godeps-test && env LANG=C.UTF-8 https_proxy=http://snap-proxy.launchpad.net:3128 SNAPCRAFT_SETUP_CORE=1 http_proxy=http://snap-proxy.launchpad.net:3128 SNAPCRAFT_LOCAL_SOURCES=1 snapcraft pull']' returned non-zero exit status 1 Revoking proxy token... RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'SNAPBUILD-26732'] Scanning for processes to kill in build /home/buildd/build-SNAPBUILD-26732/chroot-autobuild... RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'SNAPBUILD-26732'] Unmounting chroot for build SNAPBUILD-26732... RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'SNAPBUILD-26732']

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without a fix. The godeps plugin fails to install git automatically, causing go get to fail. Users must manually add git to build-packages as a workaround.
qwen/qwen3.6-35b-a3b Closed without resolution; likely abandoned. The godeps plugin fails to install git automatically, requiring a manual build-packages workaround.
qwen/qwen3.6-35b-a3b The godeps plugin lacks automatic git installation, causing build failures until manually added to build-packages. Closed without resolution or comments after nine years, indicating abandonment.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. The godeps plugin fails builds when git is missing. Users must manually add git to build-packages as a workaround. No fix or follow-up provided.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1179 godeps plugin: add git to build-packages snapcraft merged Merged a patch adding git to the godeps plugin build-packages. The change resolves a missing dependency for go get commands. Approved by one reviewer and merged directly without CI checks.
80%
#1748202 go plugin doesn't honor godeps file snapcraft (launchpad) closed The go plugin fails to parse Godeps files for dependency versioning, causing build errors. The issue was closed without resolution, indicating it was abandoned.
77%
#1656118 godeps plugin break when GOBIN is set snapcraft (launchpad) closed Closed without a documented fix. The godeps plugin incorrectly installed packages when the GOBIN environment variable was set.
74%