Comments (4)
This whole thing has more side effects than I expected: Sometimes the built-in Linting task did fail even though when I linted the files manually on the host, I could not spot any errors. It just occurred to me what the problem is: The linting task gets the changed files from git which the path on the host. Since the src folder does not exist within Docker the paths don't match and thus linting fails. Not sure if we can fix easily.
from captainhook.
Can be closed. My work-a-round is to mount the host folder twice in the container.
from captainhook.
As you said the problem is that the repository file structure is different from the container file structure. Every state related git command is no longer reliable at this point :(
from captainhook.
Ok, ignore the latter part with the git problems, I guess this is something we can't properly solve. But I guess picking a working directory should be a thing if the automatic lookup does not work.
from captainhook.
Related Issues (20)
- Do not prevent Git usage if Captain Hook installation is broken HOT 3
- $STAGED_FILES is empty during ´git commit -a´ in Docker mode HOT 31
- How to uninstall composer-plugin? HOT 3
- [Question] Cannot specify git directory with composer plugin HOT 3
- Prevent captainhook running on rebase? HOT 7
- Install command creates invalid .git/hooks/post-change if called explicitly HOT 2
- Allow a working directory to be specified HOT 2
- Allow actions to fail without stopping the git operation HOT 6
- Throw an exception if php executable doesn't work HOT 10
- New Condition: File Of Type Pushed HOT 3
- Running with --move-existing gives Undefined array key "post-commit" HOT 1
- [feature] {$CHANGED_FILES} in pre-push HOT 7
- Allow specifying multiple hooks that will be limited during install command HOT 1
- [feature] condition about changed files at pre-push HOT 6
- LogicAnd condion does not allow to combine conditions per file HOT 4
- Version 5.16.2 broke git diff commands HOT 5
- Error whilst using docker for for the FileChanged/TypeOf condition HOT 14
- [feature] allow hooks to have a label HOT 3
- Path to the composer autoload bootstrap file is not using a "realpath" HOT 6
- STAGED_FILES greedy when there is conditions 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 captainhook.