Giter VIP home page Giter VIP logo

Comments (9)

bjaglin avatar bjaglin commented on May 31, 2024

I'll try to give it a go over the week-end

from crane.

michaelsauter avatar michaelsauter commented on May 31, 2024

Yes, definitely.
Looking forward to what you come up with!

from crane.

bjaglin avatar bjaglin commented on May 31, 2024

invalid container or group names passed via -g should also yield an error

from crane.

bjaglin avatar bjaglin commented on May 31, 2024

I had to map all docker errors to a generic one (service unavailable, because unless the UI changes, docker commands will most likely fail because the client can't communicate with the server) as it seems error codes are not portable across architectures covered by Go, and therefore there is no built-in API to get the exit code in ProcessState. This is the second time I try to write some go code though, so I might be completely wrong...

from crane.

michaelsauter avatar michaelsauter commented on May 31, 2024

Hmm. I don't know enough about Go either as to what the best way is. I just googled the issue and as far as I can tell, at least on Unix systems it seems to be the same (see http://golang.org/pkg/os/#ProcessState.Sys). I don't care about Windows (Docker does not even have a client for it anyway), so for me, that would be okay to use.

from crane.

bjaglin avatar bjaglin commented on May 31, 2024

You're right, I'll update it to propagate error codes on UNIX, without caring about anything else.

from crane.

michaelsauter avatar michaelsauter commented on May 31, 2024

Fixed in #30.

from crane.

bjaglin avatar bjaglin commented on May 31, 2024

Any chance you could bump out a release with this and the other recent changes? Thanks!

from crane.

michaelsauter avatar michaelsauter commented on May 31, 2024

Sure, https://github.com/michaelsauter/crane/releases/tag/v0.7.1.

from crane.

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.