Comments (5)
Maybe we can find a hook for that to rely on the commit version, keeping things in sync is always a PITA
from php-scoper.
We'll need to add back a replaceable tag either way to inject the version string. Simplest is probably falling back on git and sed from the makefile, but Box should be able to do that automatically if we disable the "ignore VCS" option in our Finder instance (which is probably more user friendly and preferable in the end).
from php-scoper.
Is this still relevant?
from php-scoper.
Not any longer...though I'm now curious as to why not. It really should be broken!
Here's what I think is happening. We're scoping all files to build
, but running box
from current directory. So we're using the original box.json
configuration (not build/box.json
). Git commands are run from the location of the file used, not from within build
.
So long as we assume nobody tries running box from inside build
, nothing to do here. Of course, that's exactly what I originally tried before you wrote the makefile ;). We may need a --copy-vcs
option or similar down the line - I'm not sure I want to assume how users will do things.
from php-scoper.
Actually another thing is that we rely on OcramiusPackageVersion to get the version which gets it from the installed packages not git itself, so we are completely ditching box git version placeholders :)
from php-scoper.
Related Issues (20)
- Add a task to auto-bump the composer root version
- Fatal error: Cannot redeclare humbug_phpscoper_expose_class() HOT 3
- Error on Windows HOT 12
- README broken link on PHP-Scoper integration HOT 1
- Unable to create isolated composer/composer HOT 2
- Unable to determine what Guzzle version is installed HOT 3
- Fails to modify namespaces with php 8(.2.6)? HOT 3
- Incosistent scope/namespacing of InstalledVersions class HOT 10
- scoper-autoload.php doesn't support PHP 5.6 HOT 3
- The "src" directory does not exist. HOT 2
- allow specifiying included-namespaces rather than just ones to exclude HOT 7
- Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.28 and ,Class 'Composer\InstalledVersions' not found errors HOT 2
- Patchers don't report errors to default error handler HOT 8
- Mark scoped symbols as private
- Optionally group patchers to run iterations over all files HOT 6
- Patcher additional arg for progress
- There are no phar philes in github releases :( HOT 1
- Classes that are not scoped (part of the public API) have `@internal` annotation added to them since 0.18.5 HOT 1
- Document CLI arg (inspect) HOT 1
- Multiple prefixes or configs? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-scoper.