Comments (10)
@TrueFurby are you looking for contributors to this project? Adding module support to the library would be a big win for my company as we migrate to go mod
.
from go-callvis.
I also encountered this issue.
from go-callvis.
I also tried go-callvis today. We are fully on go modules and currently not able to use it with go modules.
FYI: this is how we add tools to our project so we can version them as well using go modules. Would be great if the makefile would not be required and someone can leverage go mod natively to install and version this tool.
We add a tool.go file in the root of our project.
// +build tools
package tools
import (
_ "github.com/TrueFurby/go-callvis"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/goreleaser/goreleaser"
_ "github.com/spf13/cobra/cobra"
_ "github.com/tebeka/go2xunit"
_ "golang.org/x/lint/golint"
_ "golang.org/x/perf/cmd/benchstat"
_ "golang.org/x/tools/cmd/stringer"
)
Then to install all tools we use following in our CI to use them.
go mod download
cat tools.go | grep _ | awk -F'"' '{print $2}' | xargs -tI % go install %
I would also recommend using goreleaser to release this tool as a binary.
from go-callvis.
Well, I want this feature too.
from go-callvis.
Any advice on how to deal with this issue is much appreciated. Here is the printout of what the errors on my end look like.
┌─[trivigy@x1yoga]─[~/Syncaide/Projects/gate]
└─[issue-48]─$ go-callvis -ignore go.uber.org/zap,github.com/spf13/afero,github.com/lestrrat-go/jwx/jwk .
/home/trivigy/.go/pkg/mod/github.com/lestrrat-go/[email protected]/jwk/certchain.go:7:2: could not import github.com/pkg/errors (cannot find package "github.com/pkg/errors" in any of:
/usr/local/go/src/github.com/pkg/errors (from $GOROOT)
/home/trivigy/.go/src/github.com/pkg/errors (from $GOPATH))
/home/trivigy/.go/pkg/mod/github.com/lestrrat-go/[email protected]/jwk/ecdsa.go:11:2: could not import github.com/lestrrat-go/jwx/internal/base64 (cannot find package "github.com/lestrrat-go/jwx/internal/base64" in any of:
/usr/local/go/src/github.com/lestrrat-go/jwx/internal/base64 (from $GOROOT)
/home/trivigy/.go/src/github.com/lestrrat-go/jwx/internal/base64 (from $GOPATH))
/home/trivigy/.go/pkg/mod/github.com/lestrrat-go/[email protected]/jwk/ecdsa.go:12:2: could not import github.com/lestrrat-go/jwx/jwa (cannot find package "github.com/lestrrat-go/jwx/jwa" in any of:
/usr/local/go/src/github.com/lestrrat-go/jwx/jwa (from $GOROOT)
/home/trivigy/.go/src/github.com/lestrrat-go/jwx/jwa (from $GOPATH))
/home/trivigy/.go/pkg/mod/github.com/lestrrat-go/[email protected]/jwk/ecdsa.go:13:9: could not import github.com/lestrrat-go/pdebug (cannot find package "github.com/lestrrat-go/pdebug" in any of:
/usr/local/go/src/github.com/lestrrat-go/pdebug (from $GOROOT)
/home/trivigy/.go/src/github.com/lestrrat-go/pdebug (from $GOPATH))
/home/trivigy/.go/pkg/mod/github.com/lestrrat-go/[email protected]/jwk/option.go:6:2: could not import github.com/lestrrat-go/jwx/internal/option (cannot find package "github.com/lestrrat-go/jwx/internal/option" in any of:
/usr/local/go/src/github.com/lestrrat-go/jwx/internal/option (from $GOROOT)
/home/trivigy/.go/src/github.com/lestrrat-go/jwx/internal/option (from $GOPATH))
/home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/memmap.go:25:2: could not import github.com/spf13/afero/mem (go/build: importGo github.com/spf13/afero/mem: exit status 1
error writing go.mod: open /home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/go.mod485317572.tmp: permission denied
)
/home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/util.go:28:2: could not import golang.org/x/text/transform (go/build: importGo golang.org/x/text/transform: exit status 1
error writing go.mod: open /home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/go.mod131271422.tmp: permission denied
)
/home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/util.go:29:2: could not import golang.org/x/text/unicode/norm (go/build: importGo golang.org/x/text/unicode/norm: exit status 1
error writing go.mod: open /home/trivigy/.go/pkg/mod/github.com/spf13/[email protected]/go.mod568267103.tmp: permission denied
)
/home/trivigy/.go/pkg/mod/go.uber.org/[email protected]/array.go:26:2: could not import go.uber.org/zap/zapcore (cannot find package "go.uber.org/zap/zapcore" in any of:
/usr/local/go/src/go.uber.org/zap/zapcore (from $GOROOT)
/home/trivigy/.go/src/go.uber.org/zap/zapcore (from $GOPATH))
/home/trivigy/.go/pkg/mod/go.uber.org/[email protected]/level.go:24:2: could not import go.uber.org/atomic (cannot find package "go.uber.org/atomic" in any of:
/usr/local/go/src/go.uber.org/atomic (from $GOROOT)
/home/trivigy/.go/src/go.uber.org/atomic (from $GOPATH))
/home/trivigy/.go/pkg/mod/go.uber.org/[email protected]/stacktrace.go:28:2: could not import go.uber.org/zap/internal/bufferpool (cannot find package "go.uber.org/zap/internal/bufferpool" in any of:
/usr/local/go/src/go.uber.org/zap/internal/bufferpool (from $GOROOT)
/home/trivigy/.go/src/go.uber.org/zap/internal/bufferpool (from $GOPATH))
/home/trivigy/.go/pkg/mod/go.uber.org/[email protected]/sugar.go:28:2: could not import go.uber.org/multierr (cannot find package "go.uber.org/multierr" in any of:
/usr/local/go/src/go.uber.org/multierr (from $GOROOT)
/home/trivigy/.go/src/go.uber.org/multierr (from $GOPATH))
go-callvis: couldn't load packages due to errors: go.uber.org/zap, github.com/lestrrat-go/jwx/jwk, github.com/spf13/afero
from go-callvis.
I also encountered this issue.
from go-callvis.
I have encountered the issue as well.
from go-callvis.
I also ecountered this issue :( can not run for go mod projects
from go-callvis.
+1.
from go-callvis.
+1
from go-callvis.
Related Issues (20)
- Go-callvis analyze big repos is too slow, do you have any suggestions?
- [error]zsh: exec format error on MacOS
- Add support for graph database formats
- Installation is not working
- Installation not working HOT 2
- Compilation warnings on macOS 14.0 with Apple M2 chip HOT 3
- Got error running go-callvis on github.com/googlecloudplatform/gcsfuse HOT 4
- "ent.withHooks$1: cannot convert *t0 (M) to PM"
- Link to Github pages is broken
- Not linking caller to callee in a goroutine
- Visualizing Specific Functions or Receivers
- warning: implicit truncation from 'int'
- Internal panic in pointer analysis HOT 1
- Machine readable output
- internal error in pointer analysis: runtime error: invalid memory address or nil pointer dereference
- panic: runtime error: invalid memory address or nil pointer dereference [recovered] HOT 2
- quick question: is go-callvis thread-safe? HOT 1
- README to explain `<target package>` HOT 1
- Temporary SVG file cannot be rewritten on Windows
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-callvis.