Giter Club home page Giter Club logo

Comments (11)

syohex avatar syohex commented on August 18, 2024

I suppose you need to specify absolute path of vendored package like github.com/your_name/your_product/vendor/github.com/aws/aws-sdk-go. go/importer package API which gore uses does not permit to import from vendored packages now.

from gore.

robbles avatar robbles commented on August 18, 2024

@syohex It doesn't appear to work that way either. I've tried prefixing the vendored package as if it were under a package named vendor, and still get the same :import: can't find import error.

from gore.

syohex avatar syohex commented on August 18, 2024

gore

I cannot reproduce. Please try after installing package.

from gore.

james-lawrence avatar james-lawrence commented on August 18, 2024

it imports it just fine, but its not actually usable.

gore> :import example/vendor/github.com/nlopes/slack
gore> c := slack.New("junk")
package main
	imports example/vendor/github.com/nlopes/slack: use of vendored package not allowed
error: exit status 1
exit status 1

from gore.

jasiek avatar jasiek commented on August 18, 2024

Is this high on the list?

from gore.

jamescarr avatar jamescarr commented on August 18, 2024

Yeah this is a bit of a nuisance.

from gore.

preeya-stripe avatar preeya-stripe commented on August 18, 2024

+1

from gore.

motemen avatar motemen commented on August 18, 2024

gore uses go run to evaluate user inputs, creating temporary .go file. The problem is that, in order to handle vendored packages correctly, you have to put the temporary .go file at current directory, which could make cwd dirty.

Anyway we could attack this, with carefully crafted temporary filenames. I'm going to work on this when I have time.

from gore.

motemen avatar motemen commented on August 18, 2024

Also related to #69

from gore.

machinshin avatar machinshin commented on August 18, 2024

any updates on this?

from gore.

y00rb avatar y00rb commented on August 18, 2024

@syohex it looks only work under GOPATH, since go publish module feature, some project might not always under GOPATH. so that why someone meet issue can not load package in console. I'm a part of them.

from gore.

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.