mailgun / mailgun/godebug

search package only in base gopath

Open
#85 3 comments 0 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

e.g. I have a source dir like this
+src
**_\+ login_server
_____main.go (package main)
____**\+ login
________login.go (package login)

main.go and dir login are children of dir src, login.go in dir login

when I try --instrument=login
complains
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login

even if I add login_server to gopath, it can't work
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login
G:\go\zhongshen\server\src\login_server\src\login

No idea how to make it work

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 Windows setup from the report with --instrument=login, using the shown src/login and login_server paths. Start by tracing package resolution from the --instrument entry point and compare the searched GOPATH locations. Done means the login package can be located in this layout, with accurate search-path diagnostics.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.