Closed SamB440 closed 7 years ago
Hi, thanks for your report.
Can you share the content of your composer.json
file and your composer version (via composer --version
) ?
Composer.json:
{ "name": "flarum/flarum", "description": "Delightfully simple forum software.", "type": "project", "keywords": ["forum", "discussion"], "homepage": "http://flarum.org", "license": "MIT", "authors": [ { "name": "Toby Zerner", "email": "toby.zerner@gmail.com" }, { "name": "Franz Liedke", "email": "franz@develophp.org" } ], "support": { "issues": "https://github.com/flarum/core/issues", "source": "https://github.com/flarum/flarum", "docs": "http://flarum.org/docs" }, "require": { "flarum/core": "^0.1.0", "flarum/flarum-ext-akismet": "^0.1.0", "flarum/flarum-ext-approval": "^0.1.0", "flarum/flarum-ext-auth-facebook": "^0.1.0", "flarum/flarum-ext-auth-github": "^0.1.0", "flarum/flarum-ext-auth-twitter": "^0.1.0", "flarum/flarum-ext-bbcode": "^0.1.0", "flarum/flarum-ext-emoji": "^0.1.0", "flarum/flarum-ext-english": "^0.1.0", "flarum/flarum-ext-flags": "^0.1.0", "flarum/flarum-ext-likes": "^0.1.0", "flarum/flarum-ext-lock": "^0.1.0", "flarum/flarum-ext-markdown": "^0.1.0", "flarum/flarum-ext-mentions": "^0.1.0", "flarum/flarum-ext-pusher": "^0.1.0", "flarum/flarum-ext-sticky": "^0.1.0", "flarum/flarum-ext-subscriptions": "^0.1.0", "flarum/flarum-ext-suspend": "^0.1.0", "flarum/flarum-ext-tags": "^0.1.0", "flagrow/bazaar": "^0.1.0", "cl1608ho/flarum-ext-discord-webhook": "^0.1.0@beta", "flagrow/upload": "^0.5.7", "sijad/flarum-ext-links": "^0.1.0@beta", "xengine/flarum-ext-signature": "^0.1.2", "ganuonglachanh/flarum-ext-markdown-editor": "^0.9.0", "hugogit/flarum-ext-discordwidget": "^0.1.7", "flagrow/byobu": "^0.1.0@beta", "datitisev/flarum-ext-dashboard": "^0.1.0@beta", "jordanjay29/flarum-ext-summaries": "^0.2.0" }, "require-dev": { "franzl/studio": "^0.11.0" }, "config": { "preferred-install": "dist" }, "minimum-stability": "beta", "prefer-stable": true }
Composer version: 1.4.1
@clarkwinkelmann i think the issue is that composer will fall back on doing a git checkout/clone in case no dist tarball was found. There might be several reasons for that, but none we have any influence on. I guess we need to start working on our own dist files directory. 😬
@luceos i think the issue is that composer will fall back on doing a git checkout/clone in case no dist tarball was found
That's what I believe as well.
@SamB440 I installed a Flarum just like yours based on the composer file and I can't reproduce the issue. This must be something with your environment.
I may suggest you try to clear composer cached files. A thing that happened to me in the past was the cache was written with wrong permissions and everytime composer ran it was fetching things again in a different manner.
@luceos I guess we need to start working on our own dist files directory
Wouldn’t we end up hitting the same kind of issues with our own implementation ? :thinking:
I tried clearing the cache and the issue still occurs :(
Seeing you have "config": { "preferred-install": "dist" }
in your composer.json
there's no reason for composer to try downloading the source code...
I'm running out of suggestions. If you are able to install git
on your server, you could at least use Bazaar, even if it fetches the source instead of the dist.
What composer version is installed @SamB440 ?
1.4.1, as stated before :P It's pretty recent, not that old.
Sorry I missed that :grin: I also think your cache folder is not writable. Can you run the action bazaar tries manually?
composer require flagrow/upload -vvv
@SamB440 is this still happening ? Did you try @luceos suggestion ?
I'm closing this because it's clearly not a Bazaar issue. Feel free to come back with additional information. I'll re-open if necessary :wink:
Hi, I have an issue when trying to uninstall / install / update an extension. It seems that it tries to clone from github and fails.
Steps to reproduce
Expected behaviour
It should update / install / uninstall.
Actual behaviour
I get an error. Oops! Something went wrong. Please reload the page and try again. This happens on any extension. It doesn't even seem to be trying to clone from the extension I'm actually updating / installing / uninstalling.
Configuration
Version of Bazaar: 0.2.2 Version of Flarum: Beta 6
**Logs**:
Failed to clone https://github.com/Cl1608Ho/flarum-ext-discord-webhook.git, git was not found, check that it is installed and in your PATH env. sh: git: command not found