GithubHelp home page GithubHelp logo

Doesn't work about gographs HOT 5 CLOSED

pjebs avatar pjebs commented on May 27, 2024
Doesn't work

from gographs.

Comments (5)

siggy avatar siggy commented on May 27, 2024

dataframe-go repo is missing go.sum:

$ go install github.com/loov/[email protected]
$ git clone https://github.com/rocketlaunchr/dataframe-go
$ cd dataframe-go
$ goda graph -short -cluster ./...
go [-e -json -compiled=true -test=false -export=false -deps=true -find=false -- ./...]: exit status 1: go: cloud.google.com/[email protected]: missing go.sum entry; to add it:
	go mod download cloud.google.com/go
go: cloud.google.com/[email protected]: missing go.sum entry; to add it:
	go mod download cloud.google.com/go

from gographs.

pjebs avatar pjebs commented on May 27, 2024

You don't need a go.sum

from gographs.

siggy avatar siggy commented on May 27, 2024

https://github.com/golang/go/wiki/Modules#should-i-commit-my-gosum-file-as-well-as-my-gomod-file

from gographs.

pjebs avatar pjebs commented on May 27, 2024

https://github.com/golang/go/wiki/Modules#is-gosum-a-lock-file-why-does-gosum-include-information-for-module-versions-i-am-no-longer-using

No, go.sum is not a lock file. The go.mod files in a build provide enough information for 100% reproducible builds

from gographs.

siggy avatar siggy commented on May 27, 2024

It's true go.sum is not necessary for builds, but that's like saying passwords are not necessary for websites. Yes you can technically set it up that way, but it's extremely ill advised from a security standpoint.

Two things per my first comment:

  1. The failure you reported is coming from a mature Go ecosystem tool, goda, which itself gets the error from the golang/go repo, which (correctly) requires a go.sum when calling goModSummary:

  2. If you just want a dependency graph of that repo, you can simply run the commands I provided in my first comment.

More info: https://go.dev/ref/mod#authenticating

from gographs.

Related Issues (2)

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.