Giter VIP home page Giter VIP logo

Comments (7)

GeertJohan avatar GeertJohan commented on September 26, 2024

The current rice tool cannot use build tags, another reason to move away from source analysis and towards a configuration file for boxes.

from go.rice.

burdges avatar burdges commented on September 26, 2024

Appears the current rice tool fails when multiple packages live in the same directory too.

from go.rice.

GeertJohan avatar GeertJohan commented on September 26, 2024

multiple packages in the same directory? That should never happen right? (maybe exceptionally when one package has -buildflag and the other has +buildflag). @burdges

from go.rice.

burdges avatar burdges commented on September 26, 2024

Appears not. At least, it does not happen where I once thought I'd seen it happen, thanks!

from go.rice.

cortesi avatar cortesi commented on September 26, 2024

There's another reason to do this - FindBox calls in global scope will work until the user uses embed-go, at which point it will fail, since variables are initialized before the init() functions are called. This has already confused people, as in issue #67.

from go.rice.

boyvinall avatar boyvinall commented on September 26, 2024

I just needed to implement the ability for rice to append boxes without access to source files. Only just noticed this issue after I've finished, sorry about that. I've implemented slightly differently ..

If you're in a directory that has only the box contents but no source, you can run this:

rice appendbox --exec <executable> -b <box1> [ -b <box2> ]

See boyvinall@appendbox

from go.rice.

JonathanTech avatar JonathanTech commented on September 26, 2024

@boyvinall I also came across this issue after having problems with source parsing. I implemented it similarly on the command line here - JonathanTech#1 . I added it as a separate command instead.

rice append-simple -b <box1> [-b <box2>] --exec <executable>

from go.rice.

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.