test/goroot: GOPATH workspace still uses pre-migration module path

Open Beginner friendly
#2,414 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go

Research direction

Start in test/goroot at prepareCaseWorkspace and inspect how the temporary GOPATH symlink is created. Update the link from github.com/goplus/llgo to github.com/xgo-dev/llgo, then run the reported go test command and confirm the runnable GOROOT cases reach LLGo compilation.

Written by the indexing model from the issue text.

Description

At xgo-dev/llgo main 6fe8babd4 with Go 1.26.5, runnable GOROOT cases fail before compilation because prepareCaseWorkspace creates this symlink:

$GOPATH/src/github.com/goplus/llgo ->

The runtime imports now use github.com/xgo-dev/llgo, so llgo reports that github.com/xgo-dev/llgo/runtime/internal/runtime and related packages cannot be found.

Reproduction:

go test -v ./test/goroot -run ^TestGoRootRunCases$ -count=1 -args -goroot $(go env GOROOT) -directive-mode coverage -dirs . -case ^64bit\.go$

Observed first error:

cannot find package github.com/xgo-dev/llgo/runtime/internal/runtime

Expected: the temporary GOPATH link should use github.com/xgo-dev/llgo (ideally derived from the module path), so runnable GOROOT cases reach LLGo compilation. The local one-line path correction is sufficient to get past this failure.

Dominant language
LLVM
Stars
758
Forks
49
Avg merge
1d 6h
Merged PRs (30d)
137

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.

More from xgo-dev/llgo

All issues in xgo-dev/llgo

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.