mailgun / mailgun/godebug

Godebug does not work with vendoring

Open
#83 5 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.5k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Go 1.6 has moved to vendoring for managing dependencies. However, godebug does not build when the package has vendored dependancies.

Here is the type of error message shown:
In godebug_tmp_folder/github.com/my_working_dir/my_repo/my_file.go
cannot use "github.com/popular_user/popular_lib".Fields
literal (type "github.com/popular_user/popular_lib".Fields)
as type "github.com/my_working_dir/my_repo/vendor/github.com/popular_user/popular_lib"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with Go 1.6 using a package that has a vendored dependency, and compare the reported import paths in the temporary godebug build directory. Trace how godebug prepares and builds that temporary package. Done means a package with vendored dependencies builds without the type mismatch shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.