Giter Site home page Giter Site logo

Doesn't work on linux about shoreman HOT 8 CLOSED

chrismytton avatar chrismytton commented on June 6, 2024
Doesn't work on linux

from shoreman.

Comments (8)

mig-hub avatar mig-hub commented on June 6, 2024

Ah this is strange because when I made the pull request, there was an automatic test on Travis and it didn't fail.
But maybe you changed the Travis setup recently and added more test cases.

I am personally on a Mac running Lion, but I can access a CentOS.
When I have time I will try to check as well.

Does it have anything to do with the other bug?

from shoreman.

mig-hub avatar mig-hub commented on June 6, 2024

It might have to do with the way I made it read files until the last line.
There are many ways to do this and some are probably not as portable as others.
Bash is supposed to work the same on all platforms though.

I will try something and if it is no good, I will remove it until we have something solid.

I feel guilty now because making a change on an open source project which doesn't work on linux is quite suicidal :-)

from shoreman.

chrismytton avatar chrismytton commented on June 6, 2024

No worries! I think this bug was there before your patches got merged in, I only logged them last night so they were out of my brain and in public.

I'm also running a Mac with Mountain Lion, where it works ok. I think it would be worth trying the fix from #6 to see if that makes any difference to this issue.

The reason the travis builds appear to be passing because the script incorrectly exits with 0.

from shoreman.

mig-hub avatar mig-hub commented on June 6, 2024

OK I'll implement this as soon as possible to see what it does.

from shoreman.

mig-hub avatar mig-hub commented on June 6, 2024

Hello,

I tried on a linux CentOS (redhat) and it worked fine.
And it was not the code I just changed because I tried to checkout on the commit because and the tests pass as well.

I don't have access to a platform with Ubuntu though.
But at least it means it is not linux-specific.

from shoreman.

mig-hub avatar mig-hub commented on June 6, 2024

Mate I have the answer I think !!!

trap is bash specific and in your cibuild, you start the whole thing with the sh command.
You have a shebang line, but is only taken into account when made executable and used on its own.
The reason why some systems like MacOS or some linux don't break is because on these systems, sh is bash.

At least I think it is the problem.
I will try and fix this now.

from shoreman.

mig-hub avatar mig-hub commented on June 6, 2024

Yes the test passes now.
I am a bit puzzled though because we started the test with sh, but the tests definitely start shoreman with the bash command.
I don't see why it would make it work differently.

But once again, the ways of the shell are impenetrable.

from shoreman.

chrismytton avatar chrismytton commented on June 6, 2024

Hi Mig, sorry I've been a bit quiet, had a busy week! Great work fixing this issue, can't believe it was something so small causing the problem!

Thanks for all the hard work your doing! ✨

from shoreman.

Related Issues (15)

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.