coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.36k stars 1.87k forks source link

[Bug]: Can't load compose file from any other branch then main #3025

Open Cinzya opened 3 months ago

Cinzya commented 3 months ago

Description

I tried to deploy OpenProject through this repo recommended by the developers, but got the error that the main branch could not be found when trying to load the compose file.

Since this repository doesn't include a main branch, I thought changing the branch in the Source settings would resolve this issue, but was still getting the same error, as it seems it still wants to pull from main.

I fixed the issue by forking the repo and creating a new main branch which worked for my use case. However, I could see this being a problem for people who want to deploy different environments on other branches which use different compose files.

Minimal Reproduction (if possible, example repository)

  1. Create a new Resource using Public Repository
  2. Insert https://github.com/opf/openproject-deploy as the Repository URL
  3. Select Docker Compose as the Build Pack and add /compose for the Base Directory and press Continue
  4. Go into the Source settings and change the branch. e.g. stable/14
  5. Go back to General and Reload Compose File

Exception or Error

Info
Loading docker compose file.
Error
Cloning into '.'...
fatal: Remote branch main not found in upstream origin

Version

v4.0.0-beta.319

Cloud?

andrasbacsai commented 3 months ago

This will be fixed in the upcoming version.

andrebozzo commented 2 months ago

Hi, I have installed version beta331 but this doesn't seem to work, I still get the error above

Error
Cloning into '.'...
fatal: Remote branch main not found in upstream origin

It's a self hosted version and to be clear i was trying to clone supabase repository on branch master, am I missing something? Thank you

coderjunc commented 1 month ago

This will be fixed in the upcoming version.

I'm still encountering this error: "Cloning into '.'... fatal: Remote branch main not found in upstream origin." I'm getting frustrated trying over and over again, and every attempt seems to be futile. Please fix this soon. Thanks.