Skip to content

Commit

Permalink
Remove go dep entirely
Browse files Browse the repository at this point in the history
This has been deprecated for a while, both here in dependabot and also
in the `go` ecosystem. The ecosystem has moved to `go mod` (which we
already support).

So remove the `go dep` code entirely. No need to keep supporting it.

Anyone who wants this old of code is likely not keeping up with their
dependencies anyway, so probably will just keep using an old version of
`dependabot`.

See also #3529.
  • Loading branch information
jeffwidman committed Aug 4, 2021
1 parent 76b6c3b commit 5374909
Show file tree
Hide file tree
Showing 114 changed files with 4 additions and 11,262 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
"-v", "${localWorkspaceFolder}/composer/Gemfile:/home/dependabot/dependabot-core/composer/Gemfile",
"-v", "${localWorkspaceFolder}/composer/lib:/home/dependabot/dependabot-core/composer/lib",
"-v", "${localWorkspaceFolder}/composer/spec:/home/dependabot/dependabot-core/composer/spec",
"-v", "${localWorkspaceFolder}/dep/dependabot-dep.gemspec:/home/dependabot/dependabot-core/dep/dependabot-dep.gemspec",
"-v", "${localWorkspaceFolder}/dep/Gemfile:/home/dependabot/dependabot-core/dep/Gemfile",
"-v", "${localWorkspaceFolder}/dep/lib:/home/dependabot/dependabot-core/dep/lib",
"-v", "${localWorkspaceFolder}/dep/spec:/home/dependabot/dependabot-core/dep/spec",
"-v", "${localWorkspaceFolder}/docker/dependabot-docker.gemspec:/home/dependabot/dependabot-core/docker/dependabot-docker.gemspec",
"-v", "${localWorkspaceFolder}/docker/Gemfile:/home/dependabot/dependabot-core/docker/Gemfile",
"-v", "${localWorkspaceFolder}/docker/lib:/home/dependabot/dependabot-core/docker/lib",
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- { path: cargo, name: cargo }
- { path: common, name: common }
- { path: composer, name: composer }
- { path: dep, name: dep }
- { path: docker, name: docker }
- { path: elm, name: elm }
- { path: git_submodules, name: git_submodules }
Expand Down
15 changes: 4 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,15 @@ USER root

### GO

# Install Go and dep
# Install Go
ARG GOLANG_VERSION=1.16.3
ARG GOLANG_CHECKSUM=951a3c7c6ce4e56ad883f97d9db74d3d6d80d5fec77455c6ada6c1f7ac4776d2
ENV PATH=/opt/go/bin:$PATH \
GOPATH=/opt/go/gopath
ENV PATH=/opt/go/bin:$PATH
RUN cd /tmp \
&& curl --http1.1 -o go.tar.gz https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz \
&& echo "$GOLANG_CHECKSUM go.tar.gz" | sha256sum -c - \
&& tar -xzf go.tar.gz -C /opt \
&& rm go.tar.gz \
&& mkdir "$GOPATH" \
&& chown dependabot:dependabot "$GOPATH" \
&& curl -sSLfo /opt/go/bin/dep https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64 \
&& chmod +x /opt/go/bin/dep
&& rm go.tar.gz


### ELIXIR
Expand Down Expand Up @@ -232,7 +227,6 @@ RUN apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(ls
USER root

COPY --chown=dependabot:dependabot composer/helpers /opt/composer/helpers
COPY --chown=dependabot:dependabot dep/helpers /opt/dep/helpers
COPY --chown=dependabot:dependabot bundler/helpers /opt/bundler/helpers
COPY --chown=dependabot:dependabot go_modules/helpers /opt/go_modules/helpers
COPY --chown=dependabot:dependabot hex/helpers /opt/hex/helpers
Expand All @@ -241,15 +235,14 @@ COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers
COPY --chown=dependabot:dependabot terraform/helpers /opt/terraform/helpers

ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt" \
PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin:/opt/dep/bin" \
PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin" \
MIX_HOME="/opt/hex/mix"

USER dependabot
RUN mkdir -p /opt/bundler/v1 \
&& mkdir -p /opt/bundler/v2
RUN bash /opt/bundler/helpers/v1/build /opt/bundler/v1
RUN bash /opt/bundler/helpers/v2/build /opt/bundler/v2
RUN bash /opt/dep/helpers/build /opt/dep
RUN bash /opt/go_modules/helpers/build /opt/go_modules
RUN bash /opt/hex/helpers/build /opt/hex
RUN bash /opt/npm_and_yarn/helpers/build /opt/npm_and_yarn
Expand Down
1 change: 0 additions & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ WORKDIR ${CODE_DIR}

COPY --chown=dependabot:dependabot .rubocop.yml ${CODE_DIR}/.rubocop.yml
COPY --chown=dependabot:dependabot omnibus ${CODE_DIR}/omnibus
COPY --chown=dependabot:dependabot dep ${CODE_DIR}/dep
COPY --chown=dependabot:dependabot git_submodules ${CODE_DIR}/git_submodules
COPY --chown=dependabot:dependabot terraform ${CODE_DIR}/terraform
COPY --chown=dependabot:dependabot github_actions ${CODE_DIR}/github_actions
Expand Down
1 change: 0 additions & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ RUN cd common \
COPY --chown=dependabot:dependabot bundler/Gemfile bundler/dependabot-bundler.gemspec ${CODE_DIR}/bundler/
COPY --chown=dependabot:dependabot cargo/Gemfile cargo/dependabot-cargo.gemspec ${CODE_DIR}/cargo/
COPY --chown=dependabot:dependabot composer/Gemfile composer/dependabot-composer.gemspec ${CODE_DIR}/composer/
COPY --chown=dependabot:dependabot dep/Gemfile dep/dependabot-dep.gemspec ${CODE_DIR}/dep/
COPY --chown=dependabot:dependabot docker/Gemfile docker/dependabot-docker.gemspec ${CODE_DIR}/docker/
COPY --chown=dependabot:dependabot elm/Gemfile elm/dependabot-elm.gemspec ${CODE_DIR}/elm/
COPY --chown=dependabot:dependabot git_submodules/Gemfile git_submodules/dependabot-git_submodules.gemspec ${CODE_DIR}/git_submodules/
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ GEMSPECS = %w(
bundler/dependabot-bundler.gemspec
elm/dependabot-elm.gemspec
cargo/dependabot-cargo.gemspec
dep/dependabot-dep.gemspec
npm_and_yarn/dependabot-npm_and_yarn.gemspec
composer/dependabot-composer.gemspec
hex/dependabot-hex.gemspec
Expand Down
6 changes: 0 additions & 6 deletions bin/docker-dev-shell
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,6 @@ docker run --rm -ti \
-v "$(pwd)/cargo/lib:$CODE_DIR/cargo/lib" \
-v "$(pwd)/cargo/spec:$CODE_DIR/cargo/spec" \
-v "$(pwd)/cargo/script:$CODE_DIR/cargo/script" \
-v "$(pwd)/dep/.rubocop.yml:$CODE_DIR/dep/.rubocop.yml" \
-v "$(pwd)/dep/Gemfile:$CODE_DIR/dep/Gemfile" \
-v "$(pwd)/dep/dependabot-dep.gemspec:$CODE_DIR/dep/dependabot-dep.gemspec" \
-v "$(pwd)/dep/lib:$CODE_DIR/dep/lib" \
-v "$(pwd)/dep/spec:$CODE_DIR/dep/spec" \
-v "$(pwd)/dep/script:$CODE_DIR/dep/script" \
-v "$(pwd)/go_modules/.rubocop.yml:$CODE_DIR/go_modules/.rubocop.yml" \
-v "$(pwd)/go_modules/Gemfile:$CODE_DIR/go_modules/Gemfile" \
-v "$(pwd)/go_modules/dependabot-go_modules.gemspec:$CODE_DIR/go_modules/dependabot-go_modules.gemspec" \
Expand Down
3 changes: 0 additions & 3 deletions bin/dry-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# - hex
# - composer
# - nuget
# - dep
# - go_modules
# - elm
# - submodules
Expand All @@ -40,7 +39,6 @@
$LOAD_PATH << "./cargo/lib"
$LOAD_PATH << "./common/lib"
$LOAD_PATH << "./composer/lib"
$LOAD_PATH << "./dep/lib"
$LOAD_PATH << "./docker/lib"
$LOAD_PATH << "./elm/lib"
$LOAD_PATH << "./git_submodules/lib"
Expand Down Expand Up @@ -77,7 +75,6 @@
require "dependabot/bundler"
require "dependabot/cargo"
require "dependabot/composer"
require "dependabot/dep"
require "dependabot/docker"
require "dependabot/elm"
require "dependabot/git_submodules"
Expand Down
7 changes: 0 additions & 7 deletions dep/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion dep/.rubocop.yml

This file was deleted.

7 changes: 0 additions & 7 deletions dep/Gemfile

This file was deleted.

22 changes: 0 additions & 22 deletions dep/README.md

This file was deleted.

45 changes: 0 additions & 45 deletions dep/dependabot-dep.gemspec

This file was deleted.

9 changes: 0 additions & 9 deletions dep/helpers/Makefile

This file was deleted.

26 changes: 0 additions & 26 deletions dep/helpers/build

This file was deleted.

10 changes: 0 additions & 10 deletions dep/helpers/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions dep/helpers/go.sum

This file was deleted.

1 change: 0 additions & 1 deletion dep/helpers/importresolver/go.mod

This file was deleted.

34 changes: 0 additions & 34 deletions dep/helpers/importresolver/main.go

This file was deleted.

67 changes: 0 additions & 67 deletions dep/helpers/main.go

This file was deleted.

18 changes: 0 additions & 18 deletions dep/lib/dependabot/dep.rb

This file was deleted.

Loading

0 comments on commit 5374909

Please sign in to comment.