Skip to content

migrate pkg/pubsub to github.com/moby/pubsub#44221

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:migrate_pubsub
Sep 30, 2022
Merged

migrate pkg/pubsub to github.com/moby/pubsub#44221
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:migrate_pubsub

Conversation

@thaJeztah
Copy link
Member

This package was moved to a separate repository, using the steps below:

# install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
brew install git-filter-repo

cd ~/projects

# create a temporary clone of docker
git clone https://github.com/docker/docker.git moby_pubsub_temp
cd moby_pubsub_temp

# for reference
git rev-parse HEAD
# --> 572ca799db4b67b7be35904e487f0cc51c3f9f06

# remove all code, except for pkg/pubsub, license, and notice, and rename pkg/pubsub to /
git filter-repo --path pkg/pubsub/ --path LICENSE --path NOTICE --path-rename pkg/pubsub/:

# remove canonical imports
git revert -s -S 585ff0ebbe6bc25b801a0e0087dd5353099cb72e

# initialize module
go mod init github.com/moby/pubsub
go mod tidy

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah
Copy link
Member Author

@cpuguy83 @corhere @tao12345666333 PTAL

Copy link
Contributor

@corhere corhere left a comment

Choose a reason for hiding this comment

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

Since it's already in production use, the github.com/moby/pubsub module should have a v1.0.0 release.

Copy link
Contributor

@tao12345666333 tao12345666333 left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks 🙏

@thaJeztah
Copy link
Member Author

Yes, a v1.0.0 is probably ok; I guess just some minor touching up to do in the repository (add a minimal github actions to run tests), and we should be fine I think

@thaJeztah
Copy link
Member Author

I opened moby/pubsub#1 to add github actions to the repository

@thaJeztah
Copy link
Member Author

Go Actions were added and happy. Let me tag a v1.0.0 and update this PR, then we should be all set (and we don't need to do a follow-up to update the version)

This package was moved to a separate repository, using the steps below:

    # install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
    brew install git-filter-repo

    cd ~/projects

    # create a temporary clone of docker
    git clone https://github.com/docker/docker.git moby_pubsub_temp
    cd moby_pubsub_temp

    # for reference
    git rev-parse HEAD
    # --> 572ca79

    # remove all code, except for pkg/pubsub, license, and notice, and rename pkg/pubsub to /
    git filter-repo --path pkg/pubsub/ --path LICENSE --path NOTICE --path-rename pkg/pubsub/:

    # remove canonical imports
    git revert -s -S 585ff0ebbe6bc25b801a0e0087dd5353099cb72e

    # initialize module
    go mod init github.com/moby/pubsub
    go mod tidy

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Member Author

Updated to v1.0.0 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DISCUSS] move pkg/pubsub to a standalone repository

4 participants