Giter Club home page Giter Club logo

Comments (10)

joeblubaugh avatar joeblubaugh commented on August 17, 2024 3

@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.

yonggang985 avatar yonggang985 commented on August 17, 2024 1

I also encountered this issue.

from go-callvis.

marcofranssen avatar marcofranssen commented on August 17, 2024 1

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.

sanguohot avatar sanguohot commented on August 17, 2024

Well, I want this feature too.

from go-callvis.

trivigy avatar trivigy commented on August 17, 2024

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.

traitmeta avatar traitmeta commented on August 17, 2024

I also encountered this issue.

from go-callvis.

asvetlik avatar asvetlik commented on August 17, 2024

I have encountered the issue as well.

from go-callvis.

lthung1504 avatar lthung1504 commented on August 17, 2024

I also ecountered this issue :( can not run for go mod projects

from go-callvis.

medyagh avatar medyagh commented on August 17, 2024

+1.

from go-callvis.

danmartinj avatar danmartinj commented on August 17, 2024

+1

from go-callvis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.