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

Remove go dep entirely #3538

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Remove go dep entirely #3538

merged 1 commit into from
Aug 4, 2021

Conversation

jeffwidman
Copy link
Member

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.

@jeffwidman jeffwidman requested a review from a team as a code owner April 21, 2021 17:42
ARG GOLANG_VERSION=1.16.2
ARG GOLANG_CHECKSUM=542e936b19542e62679766194364f45141fde55169db2d8d01046555ca9eb4b8
ENV PATH=/opt/go/bin:$PATH \
GOPATH=/opt/go/gopath
Copy link
Member Author

Choose a reason for hiding this comment

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

This one I wasn't entirely sure of... there were other references to gopath folder, but from a quick skim they looked unrelated to this particular folder... it's tricky because gopath is also a convenient name to use for a generic folder of where go stuff is.

At a higher level the GOPATH concept is going away completely in the upcoming go 1.17: https://blog.golang.org/go116-module-changes so it'd be best to make it so dependabot works w/o needing GOPATH (as traditionally used by go) to be set.

I think we should just see what CI says, and if CI greenlights this, then we are probably good to go (assuming CI uses this Dockerfile).

@jeffwidman
Copy link
Member Author

I think I got all the references, but not sure... grep'ing for dep doesn't suffice because it's also used as a variable name in some of the other code. 😀

Copy link
Member

@jurre jurre left a comment

Choose a reason for hiding this comment

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

We can't delete this just yet, we still have users that rely on this in dependabot-preview, we'll need to handle this a little more gracefully than just deleting the code.

@jeffwidman
Copy link
Member Author

No problem, if you need to run a more formal migration process I understand.

@xlgmokha
Copy link
Contributor

Let's revisit this PR after August 3. I'm looking forward to merging this.

@jeffwidman
Copy link
Member Author

jeffwidman commented Aug 4, 2021

Rebased to fix merge conflicts now that August 3rd is upon us. @xlgmokha @jurre @thepwagner this is ready to go. 😜

@jeffwidman
Copy link
Member Author

Also, any reviewers please grep the remaining code for "dep"... as best I could tell the remaining references were unrelated, but I'd really appreciate a second set of eyes there.

The risk is that tests could pass but we leave dead code in that isn't caught.

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.
@jurre
Copy link
Member

jurre commented Aug 4, 2021

Thanks @jeffwidman, I grepped around for a bit and I don't think there's anything left behind. I also checked some downstream services that depend on dependabot-core and I don't think we have anything that depends on dep specifically so this is good to go 🚀

@jurre jurre merged commit 360830b into dependabot:main Aug 4, 2021
@mctofu mctofu mentioned this pull request Aug 4, 2021
@jeffwidman jeffwidman deleted the remove-go-dep-entirely branch August 4, 2021 22:03
@jeffwidman
Copy link
Member Author

Awesome! Thanks @jurre

jeffwidman added a commit to dependabot/dependabot-script that referenced this pull request May 23, 2022
The `go` ecosystem has standardized on `go modules`.

We removed support for `go dep` entirely from dependabot over
in dependabot/dependabot-core#3538, but forgot to update here.

So this removes all the `go dep` mentions.
jeffwidman added a commit to dependabot/dependabot-script that referenced this pull request May 23, 2022
The `go` ecosystem has standardized on `go modules`.

We removed support for `go dep` entirely from dependabot over
in dependabot/dependabot-core#3538, but forgot to update here.

So this removes all the `go dep` mentions.
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.

None yet

4 participants