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

git-ecosystem migration: prepare repo #49

Merged
merged 3 commits into from
May 2, 2023

Conversation

ldennington
Copy link
Collaborator

This series makes the necessary updates to the repository to prepare to move it to the git-ecosystem organization.

The first commit updates the project's documentation to remove incorrect GitHub ownership references. The second updates the project's modules to specify git-ecosystem as the organization name. The third commit updates the projects bundle id from com.github.gitbundleserver to com.git-ecosystem.gitbundleserver (based on this guidance that hyphens are acceptable).

@ldennington ldennington requested review from derrickstolee and vdye May 2, 2023 18:20
Certain files in the project currently contain direct references to GitHub
ownership. In light of the impending migration to the git-ecosystem org
and the subsequent open sourcing of this project, these claims do not
apply and are being removed.

Signed-off-by: Lessley Dennington <[email protected]>
Update module names to specify `git-ecosystem` as Git Bundle Server's
organization.

Signed-off-by: Lessley Dennington <[email protected]>
Update Git Bundle Server's bundle id to `git-ecosystem` (based on this guidance
[1] indicating that hyphens are acceptable).

1: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier#discussion

Signed-off-by: Lessley Dennington <[email protected]>
@ldennington ldennington force-pushed the ldennington/migration-prep branch from d373bbe to 824fe37 Compare May 2, 2023 18:48
Copy link
Collaborator

@vdye vdye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes all look good to me! The only thing I was (mildly) worried about was changing the install package name/daemon name, but if someone has the old stuff installed, they can use the old uninstaller script to remove the artifacts before installing the new ones.

Once this is merged, I'll create a v0.1.1 with these updates!

Copy link
Collaborator

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good. I don't understand why our builds are green, though.

[bundle-uris]: https://github.com/git/git/blob/next/Documentation/technical/bundle-uri.txt
[bundle-uris]: https://git-scm.com/docs/bundle-uri
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A subtle change, but I like it.

Comment on lines -7 to +10
"github.com/github/git-bundle-server/cmd/utils"
"github.com/github/git-bundle-server/internal/argparse"
"github.com/github/git-bundle-server/internal/core"
"github.com/github/git-bundle-server/internal/log"
"github.com/git-ecosystem/git-bundle-server/cmd/utils"
"github.com/git-ecosystem/git-bundle-server/internal/argparse"
"github.com/git-ecosystem/git-bundle-server/internal/core"
"github.com/git-ecosystem/git-bundle-server/internal/log"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are our builds working with this change right now?

Copy link
Collaborator

@vdye vdye May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these links are referencing the module name defined in go.mod, which was also updated in the same commit:

https://github.com/github/git-bundle-server/blob/824fe3797d08ce17c0e8d77fd769d0c7ae002074/go.mod#LL1C1-L1C1

It does lead to an interesting question - can you just label your module anything (even the name of a different GitHub repo) and have everything work? I guess, based on this PR, the answer is "yes".

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this explains it better. Basically, the module name can be used to get a package from an external repo hosted on GitHub. But since all of our references are internal, and no external library is using our packages, everything works fine despite the (currently) non-existent GitHub link.

In general, it looks like renaming won't be a problem unless we make external package available to other projects. That might come up with auth, so I'll add a comment to the relevant issue noting it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's the trick. Since the local module has this name, the build doesn't need to fetch it from GitHub.

@ldennington ldennington merged commit 959ff3b into main May 2, 2023
@ldennington ldennington deleted the ldennington/migration-prep branch May 2, 2023 20:24
leonardoadame

This comment was marked as spam.

@leonardoadame

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants