goplus / goplus/llcppg

no required module provides package `llgo` when generating

Open
#201 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
33
Forks
11
Avg merge
1h 17m
Merged PRs (30d)
51

Description

We generate a llpkg with llcppg tool, an error occurs when i am debugging:

go: creating new go.mod: module libcjson
go: added github.com/goplus/llgo v0.10.1-0.20250304114635-02e3a6ae8b3a
panic: no required module provides package github.com/goplus/llgo/c; to add it:
                go get github.com/goplus/llgo/c

Here's my code directory structure:

llpkg
    |
    |-- go.mod 
    |-- tools 
             |-- go.mod
             |--  _demo
                  |--   llcppg.cfg

In our project, tools is a nested Go module.

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 generation from the shown llpkg layout, especially the nested tools/go.mod and tools/_demo/llcppg.cfg. Start by checking the generated go.mod and the module-resolution step that imports github.com/goplus/llgo/c. Done means generation completes without the missing-module panic in this nested-module setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, tooling
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.