Project

General

Profile

Actions

Bug #16582

closed

[Workbench2] Dockerfile installs golang 1.11 but we need 1.13+

Added by Nico César almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench
Target version:
Story points:
-
Release relationship:
Auto

Description

How to reproduce the problem:

  git clone git@git.arvados.org:arvados-workbench2.git
  cd arvados-workbench2/
  cd docker
  docker build .
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/AdRoll/goamz v0.0.0-20170825154802-2731d20f46f4
# git.arvados.org/arvados.git/sdk/go/arvados
sdk/go/arvados/keep_service.go:155:14: undefined: http.NewRequestWithContext
note: module requires Go 1.13The command '/bin/sh -c git clone https://git.arvados.org/arvados.git && cd arvados &&     go mod download &&     go run ./cmd/arvados-server install -type test && cd .. &&     rm -rf arvados &&     apt-get clean' returned a non-zero code: 2

The 2 options that I see:

1) We install golang 1.14 from backports https://packages.debian.org/buster-backports/golang
2) we manually do:

cd /tmp

wget --progress=dot:giga -O- https://storage.googleapis.com/golang/go`+goversion+`.linux-amd64.tar.gz | tar -C /var/lib/arvados -xzf -

ln -sf /var/lib/arvados/go/bin/* /usr/local/bin/

Actions

Also available in: Atom PDF