Comments (7)
Thanks for reporting back your findings. I'll need to look into this. It does make sense that it should respect the current working directory of the job.
from composer-install.
Hi, see https://github.com/ramsey/composer-install#alternate-composerjson-locations.
Using --workding-dir
in your composer-options
will automatically change the working directory (see related PR #107)
from composer-install.
Yes, that works indeed perfectly fine.
My question was about not having to specify --workding-dir
in my composer-options
if defaults.run.working-directory
is specified.
Am I missing something ?
from composer-install.
This is fixed in v2, please upgrade using ramsey/composer-install@v2
or ramsey/[email protected]
. Details are available on the release announcement and the README.
Thanks!
from composer-install.
Thanks a lot @ramsey ! 👍
Will it work with defaults.run.working-directory
(default configuration) or do I still need to specify working-directory
as input ?
from composer-install.
Hmm. That's a good question. If defaults.run.working-directory
tells GitHub to run everything from that directory, it should work accordingly, as long as your composer.json
isn't in some place other than defaults.run.working-directory
. Let me know if it doesn't work.
from composer-install.
Hmm. That's a good question. If
defaults.run.working-directory
tells GitHub to run everything from that directory, it should work accordingly, as long as yourcomposer.json
isn't in some place other thandefaults.run.working-directory
. Let me know if it doesn't work.
I just tried and it doesn't work if I just specify defaults.run.working-directory
Error: Unable to find composer.json at './composer.json'
I tried stuff like the following but it doesn't seem to be "supported" by GitHub Actions.
- uses: ramsey/composer-install@v2
with:
working-directory: ${{ defaults.run.working-directory }}
But using working-directory
with the correct path in ramsey/composer-install@v2
works as expected! 👍
from composer-install.
Related Issues (20)
- Compatibility with Composer 1 broken due to validate command HOT 1
- Action debug information showing in workflow run summary
- Heads-up: upcoming (helpful) change in setupPHP HOT 1
- Do not depend on awk and perl
- CI `run` job only tests with lock files HOT 5
- Support `composer-bin` commands like `composer bin [folder] install` HOT 4
- failed to open stream HOT 1
- Cannot find composer.json HOT 4
- Yaml is invalid? HOT 5
- Error: The process '/usr/local/bin/composer' failed with exit code 1 HOT 4
- Add `retries:` input HOT 2
- Add `--no-audit` to default options used ? HOT 1
- Better cache busting when using `dependency-versions: 'highest'` HOT 3
- `set-output` function is deprecated HOT 1
- "Could not authenticate against github.com" HOT 2
- Ability to swap out actions/cache for the faster alternative buildjet/cache HOT 1
- Failure to restore cache causes the GitHub Action step to run indefinitely HOT 8
- File "./composer.json" cannot be found in the current directory HOT 2
- locked version vs. missing lock file HOT 1
- Misleading error message when validate_composer fails due to missing HOME/COMPOSER_HOME HOT 1
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 composer-install.