Skip to content
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

GODRIVER-2989 Fix golang installation in Dockerfile #1430

Merged
merged 9 commits into from
Nov 1, 2023

Conversation

blink1073
Copy link
Member

GODRIVER-2989

Summary

Fixes a bug where the source repository could not be accessed.

Background & Motivation

In #1381 we added a Dockerfile that uses a ppa for golang-backports. The after merging, the job failed with:

``` [2023/10/16 20:43:30.858] #9 6.165 Cannot add PPA: 'ppa:~longsleep/ubuntu/golang-backports'. [2023/10/16 20:43:30.858] #9 6.165 The user named '~longsleep' has no PPA named 'ubuntu/golang-backports' [2023/10/16 20:43:30.858] #9 6.165 Please choose from the following available PPAs: [2023/10/16 20:43:30.858] #9 6.165 * 'bcmwl': bcmwl [2023/10/16 20:43:30.858] #9 6.165 * 'couchdb': Apache CouchDB [2023/10/16 20:43:30.858] #9 6.165 * 'couchdb-precise-backport': Apache CouchDB with Erlang 18 for precise [2023/10/16 20:43:30.858] #9 6.165 * 'createrepo-backports': Createrepo Backports [2023/10/16 20:43:30.858] #9 6.165 * 'firehol-backports': Firehol Backports [2023/10/16 20:43:30.858] #9 6.165 * 'golang-backports': Golang Backports [2023/10/16 20:43:30.858] #9 6.165 * 'golang-backports-dev': Golang Backports Dev [2023/10/16 20:43:30.858] #9 6.165 * 'iridium-browser-dev': Iridium Browser Dev dependencies [2023/10/16 20:43:30.858] #9 6.165 * 'pixel-extras': Pixel extras [2023/10/16 20:43:30.858] #9 6.165 * 'python2.7-backports': Python 2.7 Backports [2023/10/16 20:43:30.858] #9 6.165 * 'python3-m2crypto-backports': Python 3 M2Crypto backports [2023/10/16 20:43:30.858] #9 6.165 * 'stuff': Stuff [2023/10/16 20:43:30.858] #9 6.165 * 'ubuntu-pine64-flavour-makers': Ubuntu Pine64 Makers PPA [2023/10/16 20:43:33.409] #9 ERROR: process "/bin/sh -c export DEBIAN_FRONTEND=noninteractive && export TZ=Etc/UTC && apt-get -qq update && apt-get -qqy install --no-install-recommends pkg-config tzdata gpg apt-utils make && apt-add-repository ppa:longsleep/golang-backports && apt-get -qq update && apt-get -qqy install --no-install-recommends golang-go && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1 [2023/10/16 20:43:33.409] #8 [libmongocrypt 2/4] RUN apt-get -qq update && apt-get -qqy install --no-install-recommends git ca-certificates curl build-essential libssl-dev python [2023/10/16 20:43:33.495] #8 CANCELED [2023/10/16 20:43:33.495] ------ [2023/10/16 20:43:33.495] > [stage-1 2/4] RUN export DEBIAN_FRONTEND=noninteractive && export TZ=Etc/UTC && apt-get -qq update && apt-get -qqy install --no-install-recommends pkg-config tzdata gpg apt-utils make && apt-add-repository ppa:longsleep/golang-backports && apt-get -qq update && apt-get -qqy install --no-install-recommends golang-go && rm -rf /var/lib/apt/lists/*: [2023/10/16 20:43:33.495] 6.165 * 'createrepo-backports': Createrepo Backports [2023/10/16 20:43:33.495] 6.165 * 'firehol-backports': Firehol Backports [2023/10/16 20:43:33.495] 6.165 * 'golang-backports': Golang Backports [2023/10/16 20:43:33.495] 6.165 * 'golang-backports-dev': Golang Backports Dev [2023/10/16 20:43:33.495] 6.165 * 'iridium-browser-dev': Iridium Browser Dev dependencies [2023/10/16 20:43:33.495] 6.165 * 'pixel-extras': Pixel extras [2023/10/16 20:43:33.495] 6.165 * 'python2.7-backports': Python 2.7 Backports [2023/10/16 20:43:33.495] 6.165 * 'python3-m2crypto-backports': Python 3 M2Crypto backports [2023/10/16 20:43:33.495] 6.165 * 'stuff': Stuff [2023/10/16 20:43:33.495] 6.165 * 'ubuntu-pine64-flavour-makers': Ubuntu Pine64 Makers PPA [2023/10/16 20:43:33.495] ------ ```

@blink1073 blink1073 requested a review from a team as a code owner October 17, 2023 15:56
@blink1073 blink1073 requested review from matthewdale and removed request for a team October 17, 2023 15:56
@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

No changes found!

matthewdale
matthewdale previously approved these changes Nov 1, 2023
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@blink1073 blink1073 merged commit 53450c7 into mongodb:v1 Nov 1, 2023
33 of 37 checks passed
@blink1073 blink1073 deleted the GODRIVER-2989-2 branch November 1, 2023 13:21
blink1073 added a commit to blink1073/mongo-go-driver that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants