Coder Social home page Coder Social logo

gocsv isn't "go get"-able about gocsv HOT 4 CLOSED

aotimme avatar aotimme commented on August 16, 2024 1
gocsv isn't "go get"-able

from gocsv.

Comments (4)

aotimme avatar aotimme commented on August 16, 2024

Apologies for the delayed response. I am open to having gocsv be buildable and installable with go get. I haven't looked into it at all to know what it requires, however. Do you know what it requires?

from gocsv.

kevinsumner avatar kevinsumner commented on August 16, 2024

I'll dig into it and maybe see about a PR.

from gocsv.

kevinsumner avatar kevinsumner commented on August 16, 2024

When trying to go get it, this is the issue:

$ go get -u github.com/DataFoxCo/gocsv
package github.com/DataFoxCo/gocsv: no Go files in /Users/ksumner/projects/go/src/github.com/DataFoxCo/gocsv

I think it's just a small amount of repository shuffling.

from gocsv.

aotimme avatar aotimme commented on August 16, 2024

As of 2c7bbd7 you can now get gocsv using go get, but because we are using modules (see https://github.com/golang/go/wiki/Modules), it will not install correctly -- in particular, the version and git hash will not be set (those are set in the scripts to build gocsv) and it will not respect the dependency versions as defined by the go.mod and go.sum files.

One way to install gocsv using go get would be to do

# only download (and upgrade) gocsv -- don't actually build/install
go get -d -u github.com/DataFoxCo/gocsv
# build using Makefile
cd ${GOPATH:-~/go}/src/github.com/DataFoxCo/gocsv
make

This will build gocsv at ${GOPATH}/src/github.com/DataFoxCo/gocsv/bin/gocsv and will respect the modules (assuming you are using go version 1.11 or later). You can then move gocsv into your $PATH (e.g. at /usr/local/bin/gocsv).

from gocsv.

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.