Changing master branch to main in Quarkus repositories

178 views
Skip to first unread message

Guillaume Smet

unread,
Mar 10, 2021, 10:17:21 AM3/10/21
to Quarkus Development mailing list
Hi,

We will change the main branch of the various Quarkus repositories from `master` to `main` in the coming weeks.

We will start with the quickstarts and main repo either before end of week or beginning of next week and then we will pursue with the more involved ones like the whole Quarkiverse.

Hopefully, we will be able to reduce the disruption while doing so as GitHub introduced tools that should install proper redirections.

Just wanted to give you all a heads up. I will send the updates in this thread.

--
Guillaume

Guillaume Smet

unread,
Mar 11, 2021, 7:18:19 AM3/11/21
to Quarkus Development mailing list
I just renamed the master branch of the quarkus-quickstarts repo.

GitHub says to apply these commands to your repo:
git branch -m master main
git fetch origin
git branch -u origin/main main

Personally, I had to change them to the following as I use `upstream` for the original repo:
git branch -m master main
git fetch upstream
git branch -u upstream/main main

There's a good chance you will need to do the same thing for your fork.

Georgios Andrianakis

unread,
Mar 11, 2021, 7:36:40 AM3/11/21
to Guillaume Smet, Quarkus Development mailing list
Works like a charm

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CALt0%2Bo-cVGgN2LNx6UMDDx29O1EqcyAzrh6-Gpzu7m-JSQtP6Q%40mail.gmail.com.

Sanne Grinovero

unread,
Mar 11, 2021, 8:13:26 AM3/11/21
to Georgios Andrianakis, Guillaume Smet, Quarkus Development mailing list


On Thu, 11 Mar 2021 at 12:36, Georgios Andrianakis <gand...@redhat.com> wrote:
Works like a charm

+1
No problems

Thanks!

 

Guillaume Smet

unread,
Mar 11, 2021, 9:26:44 AM3/11/21
to Sanne Grinovero, Georgios Andrianakis, Quarkus Development mailing list
Just a heads up that I will do the change on the main Quarkus repository on Friday late afternoon Paris time.

--
Guillaume

Jason Greene

unread,
Mar 11, 2021, 3:15:28 PM3/11/21
to guillau...@gmail.com, Sanne Grinovero, Georgios Andrianakis, Quarkus Development mailing list
BTW in case anyone hasn’t heard the news and is wondering why this is happening. There is a mass community ecosystem move to this new convention underway:



On Mar 11, 2021, at 8:26 AM, Guillaume Smet <guillau...@gmail.com> wrote:



Robbie Gemmell

unread,
Mar 12, 2021, 9:08:28 AM3/12/21
to Guillaume Smet, Quarkus Development mailing list
I've raised https://github.com/quarkusio/quarkusio.github.io/pull/927
to update quickstart links to fix some breakages (for archive links)
and avoid some redirects.

Guillaume Smet

unread,
Mar 12, 2021, 10:55:06 AM3/12/21
to Robbie Gemmell, Quarkus Development mailing list
Yeah, I'm going to migrate the main repository now and fix all that.

Guillaume Smet

unread,
Mar 12, 2021, 10:55:57 AM3/12/21
to Robbie Gemmell, Quarkus Development mailing list
The branch has been renamed for the main repo.

I will now go through all the code/CI workflows and so on.

Guillaume Smet

unread,
Mar 12, 2021, 1:22:30 PM3/12/21
to Robbie Gemmell, Georgios Andrianakis, clement escoffier, George Gastaldi, Quarkus Development mailing list
OK, I think I'm done... I checked everything twice, also checked all the external links to see if they already moved to a new branch or not.

Unfortunately, I'm unable to create a PR (probably too many changes), I have the GitHub Unicorn every time I try to create the PR. I will wait for CI in my fork and then I'll push directly to main.

What you need to do (and that for every repo I will mention after that):
- go to your fork, you will have a nice popup saying that the branch of the upstream repo has been renamed, just click the Branch settings link and update the branch master to main (there's a small pencil at the right of the master branch)
- then, if you follow the conventions I use (i.e. upstream/origin), you can execute:
git branch -m master main
git fetch origin
git branch -u origin/main main
git fetch upstream
git branch -u upstream/main main
(and adapt it if you're using a different convention)

Some notes, once we migrate the following repo, we need to update the doc in the main repo:

There are still a few problematic occurrences
docs/src/main/asciidoc/datasource.adoc
-> master|slave for MariaDB and MySQL JDBC URLs - I think they changed things for MySQL as we had to change a few class names here when we upgraded but I don't know what the new URLs are. For MariaDB, I don't think they did it.

Then there are a few other things:
- Keycloak realm
- Kubernetes master URL
- KMS
- Vault master API
but for these ones, I think we will need to wait for the vocabulary of these projects to evolve.

--
Guillaume

Georgios Andrianakis

unread,
Mar 12, 2021, 1:25:56 PM3/12/21
to Guillaume Smet, Robbie Gemmell, clement escoffier, George Gastaldi, Quarkus Development mailing list


On Fri, Mar 12, 2021, 20:22 Guillaume Smet <guillau...@gmail.com> wrote:
OK, I think I'm done... I checked everything twice, also checked all the external links to see if they already moved to a new branch or not.

Heroic work!

Unfortunately, I'm unable to create a PR (probably too many changes), I have the GitHub Unicorn every time I try to create the PR. I will wait for CI in my fork and then I'll push directly to main.

What you need to do (and that for every repo I will mention after that):
- go to your fork, you will have a nice popup saying that the branch of the upstream repo has been renamed, just click the Branch settings link and update the branch master to main (there's a small pencil at the right of the master branch)
- then, if you follow the conventions I use (i.e. upstream/origin), you can execute:
git branch -m master main
git fetch origin
git branch -u origin/main main
git fetch upstream
git branch -u upstream/main main
(and adapt it if you're using a different convention)

Some notes, once we migrate the following repo, we need to update the doc in the main repo:

Sure yeah

George Gastaldi

unread,
Mar 12, 2021, 1:44:32 PM3/12/21
to Guillaume Smet, Robbie Gemmell, Georgios Andrianakis, clement escoffier, Quarkus Development mailing list
Splendid work! Sure, let's coordinate on the quarkiverse-docs repo. Ping me in Zulip

Bernhard Lutzmann

unread,
Mar 12, 2021, 1:45:20 PM3/12/21
to Quarkus Development mailing list
Guillaume,

there seems to be a major GitHub outage:


Regards,
Bernhard

Guillaume Smet

unread,
Mar 12, 2021, 1:50:00 PM3/12/21
to Robbie Gemmell, Georgios Andrianakis, clement escoffier, George Gastaldi, Quarkus Development mailing list
I also renamed the main branches of:
- gizmo
- quarkus-http
- quarkus-security
- quarkus-platform

So if you're working on the main project, things should be consistent. Just follow the instructions I gave earlier and you should be all set.

As for the rest, we will need more coordination.

BTW, GitHub is all broken right now so will create/merge the additional PRs later tonight or tomorrow.

Guillaume Smet

unread,
Mar 12, 2021, 2:18:22 PM3/12/21
to Robbie Gemmell, Georgios Andrianakis, clement escoffier, George Gastaldi, Quarkus Development mailing list

Guillaume Smet

unread,
Mar 13, 2021, 6:21:38 AM3/13/21
to Robbie Gemmell, Georgios Andrianakis, clement escoffier, George Gastaldi, Quarkus Development mailing list
I merged the big PR this morning.

Falko

unread,
Mar 13, 2021, 6:52:41 AM3/13/21
to Quarkus Development mailing list
The switch went well for my fork, thanks for the git commands!

I think this is also a good opportunity to push to your fork's main, for consistency and to refresh Maven repo cache etc.

PS: It's easy to miss, but there is a suggestion in CONTRIBUTING.md to push to your main every now and then: https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md#continuous-integration (last sentence)

Andy Damevin

unread,
Mar 16, 2021, 4:32:10 AM3/16/21
to moldowan...@gmail.com, Quarkus Development mailing list

Erin Schnabel

unread,
Mar 17, 2021, 7:00:09 AM3/17/21
to adam...@redhat.com, Quarkus Development mailing list, moldowan...@gmail.com
The micrometer registry repo in quarkiverse has brrn switched.

--
Thanks,
Erin
 
------
Erin Schnabel <ebul...@redhat.com>
@ebullientworks

clement escoffier

unread,
Mar 22, 2021, 4:08:00 AM3/22/21
to Erin Schnabel, adam...@redhat.com, Quarkus Development mailing list, moldowan...@gmail.com
Hello,

I did quarkus-images yesterday. 

Clement

George Gastaldi

unread,
Apr 15, 2021, 9:33:47 AM4/15/21
to Quarkus Development mailing list
Hello all!

We want to rename the https://github.com/quarkusio/quarkus-ecosystem-ci default branch from `master` to `main`, however by doing so, this might break the builds for a CI participant unless a small update to their `.github/workflows/quarkus-snapshot.yaml` files is performed. The change is simple and should work with your current build as of today:

We kindly ask the extension maintainers to remove the `ref` attribute in their `quarkus-snapshot.yaml` files. See https://github.com/quarkiverse/quarkus-prettytime/commit/298127569dd5f3e89bf3c6d07ee8e4b3fcf9cd2e if you need help.
New extensions generated through the plugin already have this change. If your action YAML does not have the `ref` you're all set :)

We're planning to change the branch name on May 3rd, so make sure to perform that change in your repositories by then.

Thank you!

Max Andersen

unread,
Apr 16, 2021, 2:39:28 AM4/16/21
to Quarkus Development mailing list, ggas...@redhat.com
Any reasons why we don't just do a bulk search and replace and submit PRs for each repo ?

/max
--

You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.

George Gastaldi

unread,
Apr 16, 2021, 1:16:26 PM4/16/21
to Max Andersen, Quarkus Development mailing list
Looks like we have a volunteer to work on that? 😀

Max Rydahl Andersen

unread,
Apr 17, 2021, 8:04:30 AM4/17/21
to George Gastaldi, Quarkus Development mailing list
sure. 


issue with the info, steps i made and PRs submitted.

I hope i got it right :)

/max

--

George Gastaldi

unread,
May 3, 2021, 1:18:01 PM5/3/21
to Quarkus Development mailing list
The branch was renamed. If you´re a Quarkiverse maintainer, make sure your PR (created from https://github.com/quarkusio/quarkus/issues/16601) is merged, otherwise your Ecosystem CI builds will fail. 
If you have the quarkus-ecosystem-ci repository cloned locally, you need to run the following commands:

git branch -m master main 

git fetch origin 

git branch -u origin/main main 

git remote set-head origin -a


Antonio Goncalves

unread,
Jun 8, 2021, 7:23:51 AM6/8/21
to Quarkus Development mailing list
Hi,

I just went to https://code.quarkus.io and generated an application by pushing it to GitHub. It created it into a branch called master (not main) :


I don't know where this setting happens, if it's on https://code.quarkus.io side or on my side (but I couldn't see any settings).

Any idea ?

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.


--
Antonio Goncalves 
Contractor, Java Champion and Pluralsight author

Blog | Twitter | LinkedIn Author Pluralsight | Devoxx France | Voxxed Microservices

Jean-Francois Maury

unread,
Jun 8, 2021, 7:26:39 AM6/8/21
to antonio....@gmail.com, Quarkus Development mailing list
I opened an issue a while ago I think it has been fixed but deploy is to happen 

Bernhard

unread,
Jun 8, 2021, 8:16:55 AM6/8/21
to Quarkus Development mailing list
You can set the default branch in your GitHub settings:

Jean-Francois Maury

unread,
Jun 8, 2021, 8:19:20 AM6/8/21
to bernhard...@abraxas.ch, Quarkus Development mailing list

Paul Robinson

unread,
Sep 3, 2021, 10:38:39 AM9/3/21
to Jean-Francois Maury, bernhard...@abraxas.ch, Quarkus Development mailing list
Hi All,

Just picking this up again. I see many people have been doing a great job migrating their Quarkus repos to use main instead of master. However, we still have a few more to go:

ja.quarkus.io
jbang-catalog
quarkus-spring-boot-api
quarkus-spring-data-api
quarkus-workshops
quarkus-spring-api
quarkus-spring-security-api
qson
quarkus-kafka-broker-image
resteasy-reactive-testsuite

Can I get volunteers to update those please?

Thanks!

Paul.



--

George Gastaldi

unread,
Sep 3, 2021, 10:53:49 AM9/3/21
to Paul Robinson, Jean-Francois Maury, bernhard...@abraxas.ch, Quarkus Development mailing list
I updated the jbang-catalog repository

You received this message because you are subscribed to a topic in the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/quarkus-dev/9pgWBYl6IqY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAL%2BvToZ2yrKGF3_EYrCruo6nEuG0Hd01f6GYM9c4ncO6qpny%2BA%40mail.gmail.com.

Georgios Andrianakis

unread,
Sep 3, 2021, 11:05:38 AM9/3/21
to George Gastaldi, Paul Robinson, Jean-Francois Maury, bernhard...@abraxas.ch, Quarkus Development mailing list
I'll do the Spring and RESTEasy Reactive related repos on Monday

Georgios Andrianakis

unread,
Sep 6, 2021, 6:35:55 AM9/6/21
to George Gastaldi, Paul Robinson, Jean-Francois Maury, Quarkus Development mailing list
It turns out that I don't have the karma to rename the branches

Guillaume Smet

unread,
Sep 6, 2021, 7:03:34 AM9/6/21
to Georgios Andrianakis, George Gastaldi, Paul Robinson, Jean-Francois Maury, Quarkus Development mailing list
On Mon, Sep 6, 2021 at 12:35 PM Georgios Andrianakis <gand...@redhat.com> wrote:
It turns out that I don't have the karma to rename the branches

Done for the RR TCK and the Spring API projects. I'll let you pass the info to the appropriate persons.

Georgios Andrianakis

unread,
Sep 6, 2021, 7:04:36 AM9/6/21
to Guillaume Smet, George Gastaldi, Paul Robinson, Jean-Francois Maury, Quarkus Development mailing list
Thanks!

Reply all
Reply to author
Forward
0 new messages