Comments (13)
Closing as Makefiles are gone. symfony/console
is now a requirement in the base skeleton.
from flex.
Make does exist for Windows, the problem does not come from make
but from the commands that are run inside: test
, rm
, and even bin/console
.
For this, you need to use Cygwin or integrate linux tools in your PATH when installing Git for Windows for example (just a checkbox during Git installation, with a warning).
Even still, shebang lines won't work, and I would recommend replacing bin/console
with php bin/console
in the makefile 🙂
Edit: And in any case, starting from Windows 10 you can use WSL and natively have make
installed in your linux subsystem :)
from flex.
Using Composer has many disadvantages (like timeouts, non-support for ANSI escape codes, ...).
from flex.
Hello to install flex over Windows without problems, you must to install first these packages
http://gnuwin32.sourceforge.net/packages/coreutils.htm
http://gnuwin32.sourceforge.net/packages/make.htm
after SET in your windows enviromental vars something like "C:\Program Files (x86)\GnuWin32\bin" where this is your path of GnuWin bin directory installation
from flex.
PHP_EOL on Windows is "\n\r", but makefiles are Posix based "\n", will this not cause any problems?
It's "\r\n", not "\n\r" , but still, maybe Flex could detect the OS and change the line feed for the makefile?
from flex.
I ported the Makefile
to windows as make.bat
to work with flex. Gist the only issue is that there is somewhere a extension check and the confirm does not work as expected. But finally it's working to execute the commands.
D:\xxx>make.bat serve
[ERROR] This command needs the pcntl extension to run.
You can either install it or use the "server:run" command instead.
Do you want to execute server:run immediately? [yN] []:
> N
[OK] Server listening on http://127.0.0.1:8000
// Quit the server with CONTROL-C.
from flex.
@chapterjason That's nice to see you have worked to "port" this makefile. But actually, the best fallback is either to use WSL, or native Symfony console with Windows terminal..
from flex.
PHP_EOL on Windows is "\n\r", but makefiles are Posix based "\n", will this not cause any problems?
from flex.
Could Composer custom commands be used instead? ref: https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands
Could have Flex simply write them to the composer.json file (although would get warning about lock being outdated I think?).
There is a request for Composer to support inheritance which might be useful for this: composer/composer#4210
from flex.
@Pierstoval when creating the Makefile, it does. The issue then is that the Makefile is committed in your repo, and so will be shared between everyone. This makes it harder to handle line endings.
The nice way would be for Make itself to support Unix line endings in their Windows version. But I don't know whether it is the case.
from flex.
I'm not sure, maybe we should take a look at the gnu make project 😕
from flex.
Or just use https://github.com/dunglas/symfony-docker
It should work just fine on Windows.
from flex.
With this version of GNU make, I end up with this kind of error:
e:\dev\www\flex_tests\skeleton $ make
process_begin: CreateProcess(NULL, which bin/console, ...) failed.
make: *** [sf_console] Erreur -1073740791
from flex.
Related Issues (20)
- Renaming of docker-compose.yaml in compose.yaml : postgresql does'nt work anymore HOT 8
- Unclear problem description when Flex blocks package installation (by `extra.symfony.require` rule) HOT 1
- [Feature] Recipe endpoint for private recipe should not be in the project but in the bundle
- Missing tag for version v1.21.5 ? HOT 3
- Remove importmap entries when uninstalling a package
- ComposerScriptsConfigurator can break "composer.json" filename in patch
- Symfony Flex 1.8.5 is not compatible with Composer 2.7.0
- Symfony Flex fails when using Composer 2.7.0, running as root HOT 7
- Unable to update recipe HOT 3
- PackageJsonSynchronizer is not fail safe HOT 1
- Invalid version string "master.9999999" HOT 2
- Make packages.json synchronization optional
- `dump-env` command doesn't respect real Env Vars during Expansion.
- OPcache API is restricted by "restrict_api" HOT 4
- Flex tries to install version that are not tagged
- Certificate error https://flex.symfony.com HOT 3
- Suggest adding management of the compose.yml file in addition to docker-compose.yml HOT 1
- Optimized key management to avoid duplication
- Support for local stored recipe files
- Resolving dependencies fails for symfony/psr-http-message-bridge after change of recipe
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 flex.