Coder Social home page Coder Social logo

Compile a single file outside GOPATH about goxc HOT 3 CLOSED

gizak avatar gizak commented on July 17, 2024
Compile a single file outside GOPATH

from goxc.

Comments (3)

laher avatar laher commented on July 17, 2024

Hi there, goxc runs the 'go-install' task as part of its default workflow, before cross-compiling, and it's failing there.

For the moment you should just be able to run the cross-comile task directly: goxc -d=dist xc

But I guess goxc could just check if it's running outside the GOPATH and ignore go-install errors in this case. I'll do this soon. Hmm, I might remove go-vet from the default workflow too.

from goxc.

gizak avatar gizak commented on July 17, 2024

@laher Thank you! that works! Well there is another question, can I specify the compiled files' name? Since if I compile it under Desktop dir, all the files will be named Desktop automatically, it's meaningless anyway.

By the way, great job you done!

from goxc.

laher avatar laher commented on July 17, 2024

Good stuff.
I'm working on this, it's only a couple of hours of work but it'll take a week or 2 to find the time. I've been meaning to do this for ages.
So, there will be a new option for 'app name' (-n), and another for specifying the output filename which will be a template. It's a bit more compilcated than that but that's the general idea. I'll let you know when it's ready. Cheers

from goxc.

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.