Coder Social home page Coder Social logo

Comments (10)

GrahamCampbell avatar GrahamCampbell commented on May 30, 2024

This isn't a bug. You need to set your "minimum-stability" to dev. This is just one reason why composer's require command is bad imo.

from humbug.

padraic avatar padraic commented on May 30, 2024
composer require --dev humbug/humbug:1.0.*@dev padraic/phpunit-extensions:~1.0@dev

I think you can swing it with the colon separator before the version? I actually did something similar today while cleaning up Mockery's travis scripts and build deps: https://github.com/padraic/mockery/blob/travis-cleanup/travis/install.sh

--dev just adds it to require-dev instead of require.

Edit: Since there's actually two dev versions, need to include both and then it should work.

from humbug.

GrahamCampbell avatar GrahamCampbell commented on May 30, 2024

@padraic That's a really crap solution though.

from humbug.

padraic avatar padraic commented on May 30, 2024

@GrahamCampbell It's hideous

Will do if anyone really really needs this until stable releases of Humbug and phpunit-extensions (and the phar) are available. Mockery uses it solely for the Travis builds and I'm removing coveralls thereafter from composer.json.

from humbug.

samsonasik avatar samsonasik commented on May 30, 2024

@padraic try without --dev :

composer require humbug/humbug:1.0.*@dev padraic/phpunit-extensions:~1.0@dev

and it works. should readme be updated ?

from humbug.

padraic avatar padraic commented on May 30, 2024

I'd prefer people update their composer.json, do a global install, or have a self-updating phar. Humbug really doesn't even target composer.json - it's an infrequent use development tool. Perhaps I should simply get regular phars rolling?

from humbug.

samsonasik avatar samsonasik commented on May 30, 2024

+1 for phar it.

from humbug.

padraic avatar padraic commented on May 30, 2024

Phar builds have been implemented via box. I had to write my own self-update based loosely off composer's. The revised self update enforces TLS and checks phar signatures.

Closing since this is the preferred install option, other than a bleeding edge clone which is best for debugging/testing.

from humbug.

samsonasik avatar samsonasik commented on May 30, 2024

thank you @padraic ;)

from humbug.

padraic avatar padraic commented on May 30, 2024

@samsonasik Currently broken unfortunately. There is an odd ioctl error popping up. I just built a phar, tested (worked!), uploaded and self-updated somwhere. Error. Then I built again, tested, and it was there during testing. Not sure if it's box or something codewise. Will need to do some digging with build options...

Ordinary clone copy works perfectly every time.

from humbug.

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.