GeertJohan / GeertJohan/go.rice

Using rice.Config rice tool can't find calls

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

Nobody has claimed this yet.

needs 2.0 wontfix
Dominant language
Go
Stars
2.4k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Based on the example.go file

``` go
package main

import (
"fmt"
"github.com/gutenye/go.rice"
)

func main() {
r := rice.Config{
LocateOrder: []rice.LocateMethod{rice.LocateFS, rice.LocateEmbedded},
}

_, _ = r.FindBox("www")
}
```

run `$GOPATH/bin/rice -v embed-go`

```
2015/05/14 10:21:19 using pwd as import path
2015/05/14 10:21:19 using import paths: [gothing]
2015/05/14 10:21:19 scanning file "/Development/Go/gothing/src/gothing/main.go"
no calls to rice.FindBox() found
2015/05/14 10:21:19
2015/05/14 10:21:19 rice finished successfully
```

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

Start with the example.go reproduction and run `$GOPATH/bin/rice -v embed-go` to confirm the “no calls to rice.FindBox() found” output. Trace the embed-go call scanner from that command and determine why the rice.Config-based FindBox call is missed; done means the command detects the call and processes the www box.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.