Skip to content

refactor: move main package into ./cmd/runc - #3521

Closed
junnplus wants to merge 1 commit into
opencontainers:mainfrom
junnplus:cmd-runc
Closed

refactor: move main package into ./cmd/runc#3521
junnplus wants to merge 1 commit into
opencontainers:mainfrom
junnplus:cmd-runc

Conversation

@junnplus

Copy link
Copy Markdown

Signed-off-by: Ye Sijun junnplus@gmail.com

Signed-off-by: Ye Sijun <junnplus@gmail.com>
@junnplus

junnplus commented Jul 2, 2022

Copy link
Copy Markdown
Author

@AkihiroSuda @cyphar @kolyshkin any ideas?

@kolyshkin

Copy link
Copy Markdown
Contributor

Not sure if it helps anything. We are not going to add more commands...

@thaJeztah

Copy link
Copy Markdown
Member

Yeah, from a go modules perspective, this wouldn't bring benefits, unless it was its own module (which is why we did something like this in "library" repositories, such as containerd/continuity#200)

For runc, it's actually the reverse; the binary is the main project, and some packages (libcontainer) are effectively a "side product" that happen to be used by some external consumers.

Moving this to cmd/ will actually be a breaking change, as "go install github.com/opencontainers/runc@version" will no longer work.

@junnplus

Copy link
Copy Markdown
Author

OK, let's leave it as is.

@junnplus junnplus closed this Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants