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

Protoc library download sequence is in wrong order #14

Open
joonas-fi opened this issue Feb 19, 2024 · 0 comments
Open

Protoc library download sequence is in wrong order #14

joonas-fi opened this issue Feb 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joonas-fi
Copy link
Member

joonas-fi commented Feb 19, 2024

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

@joonas-fi joonas-fi added the bug Something isn't working label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant