Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Project from single composer.json throws errors #5161

Closed
PhillippOhlandt opened this issue Apr 12, 2016 · 13 comments
Closed

Create Project from single composer.json throws errors #5161

PhillippOhlandt opened this issue Apr 12, 2016 · 13 comments
Labels
bug A bug that has been verified
Milestone

Comments

@PhillippOhlandt
Copy link
Contributor

To setup a new project I started here:
https://docs.bolt.cm/master/installation/composer/creating-a-new-project#initialise-a-project

Created .bolt.yml and composer.json and ran composer create-project.

Then I got this:

After I created each folder manually I got this after I tried again:

Details

  • Relevant Bolt Version: 3.0 beta
  • Install type: [ Composer install ]
  • PHP version: [ 7.0 ]
@CarsonF
Copy link
Member

CarsonF commented Apr 18, 2016

Why were .bolt.yml and composer.json created before running composer create-project?

@PhillippOhlandt
Copy link
Contributor Author

Because the docs says I shall create them and then run the command.

@SvanteRichter
Copy link
Contributor

Bolt's Composer based installs can be performed using either composer create-project (recommended), or building your own composer.json and path configuration file for more advanced control.

@PhillippOhlandt I might be missing something here, but that sounds to me more like an "either/or" rather than a "before and then" situation.

@SvanteRichter
Copy link
Contributor

Removed blocker per dev-meeting

@GwendolenLynch
Copy link
Contributor

It's still crappy and can be done better and what is documented break… but very tiny corner case of people that should be able to deal with it.

I've tagged 3.1 on this and that is also flexible.

@GwendolenLynch GwendolenLynch modified the milestones: Bolt 3.1 - Feature release, Bolt 3.2 - Feature release Jul 25, 2016
@SvanteRichter
Copy link
Contributor

@PhillippOhlandt Still an issue or not?

@PhillippOhlandt
Copy link
Contributor Author

@SahAssar yep, but it's the wrong way to setup Bolt anyway. It still complains about the missing folders.

@CarsonF
Copy link
Member

CarsonF commented Aug 10, 2016

Yeah if you are creating a project you shouldn't need to have to create a composer.json and .bolt.yml first. The create command creates those files.

@PhillippOhlandt
Copy link
Contributor Author

But it fails when the folders are missing instead of creating it. That's why you usually use bolt/composer-install because it has the folders.

@CarsonF
Copy link
Member

CarsonF commented Aug 10, 2016

Oh are you calling create-project bolt/bolt? Don't do that.

@PhillippOhlandt
Copy link
Contributor Author

Yeah, it will start the config process but it fails when a folder is missing. Would be better when the folder will be created then.

@CarsonF
Copy link
Member

CarsonF commented Aug 10, 2016

Nope. Just should be avoided entirely.

@GwendolenLynch
Copy link
Contributor

Nope. Just should be avoided entirely.

Agreed.

Also those docs were all heavily, if not completely, rewritten. So calling this closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that has been verified
Projects
None yet
Development

No branches or pull requests

4 participants