Skip to content

Protoc library download sequence is in wrong order #14

@joonas-fi

Description

@joonas-fi

image

The sections are disconnected from each other and thus it's not happening in the order we try to it to be in.. maybe it still does work but it's Fugly.

RUN apt update && apt install -y zip \
&& go install golang.org/x/tools/cmd/goimports@latest \
&& go install golang.org/x/tools/cmd/godoc@latest \
&& go install golang.org/x/tools/gopls@latest \
&& go install github.com/function61/deployer/cmd/deployer@latest \
&& go install github.com/rogpeppe/gohack@latest \
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip \
&& unzip protoc-3.17.3-linux-x86_64.zip && mv bin/protoc /usr/local/bin/ && cd / && rm -rf /tmp/protoc \
&& ln -s /workspace/gohack /root/gohack \
&& curl --fail --location -o /go/bin/depth https://github.com/KyleBanks/depth/releases/download/v1.2.1/depth_1.2.1_linux_amd64 \
&& chmod +x /go/bin/depth \
&& curl --fail --location https://function61.com/app-dl/api/github.com/golangci/golangci-lint/latest_releases_asset/golangci-lint-%2A-linux-amd64.tar.gz \
| tar --strip-components=1 -C /usr/local/bin -xzf - --wildcards 'golangci-lint-*-linux-amd64/golangci-lint' \
&& rm -rf /go/pkg \
&& mkdir /tmp/protoc && cd /tmp/protoc \
&& curl --fail --location https://github.com/abhinav/doc2go/releases/download/v0.8.1/doc2go-linux-amd64.tar.gz | tar -C /usr/local/bin/ -xzf - doc2go \
&& ln -s /usr/bin/build-go-project.sh /build-common.sh \
&& git config --global --add safe.directory /workspace \
&& true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions