Skip to content

Commit

Permalink
[deb-x64] Fix go path setup
Browse files Browse the repository at this point in the history
  • Loading branch information
KSerrania committed Mar 1, 2023
1 parent 2b0fd7c commit ac3f1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions deb-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ RUN curl -Sl -O https://dd-agent-omnibus.s3.amazonaws.com/kernel-4.9-headers-deb
COPY ./setup_go.sh /setup_go.sh
RUN ./setup_go.sh

ENV PATH="/goroot/bin:$PATH"
ENV PATH="/go/bin:$PATH"

# Download and install golangci-lint
RUN curl -sSfL -o golangci-lint-install.sh https://raw.githubusercontent.com/golangci/golangci-lint/v1.44.2/install.sh \
&& echo "1c2edb726aad6bf7d260d95c370bd9ec0fb1a8651e6db6f77f250dd66067de0c golangci-lint-install.sh" | sha256sum --check \
Expand Down
3 changes: 0 additions & 3 deletions setup_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ ln -sf /usr/local/binutils/bin/ld /usr/bin/ld

./all.bash

# Update PATH to include the built go binaries
echo 'export PATH="/goroot/bin:$PATH"' >> /root/.bashrc

# Remove gimme
rm -rf $HOME/.gimme
rm /bin/gimme

0 comments on commit ac3f1f7

Please sign in to comment.