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

Support nerdctl build custom outputs alias of type local #1459

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Support nerdctl build custom outputs alias of type local #1459

merged 1 commit into from
Oct 21, 2022

Conversation

yuchanns
Copy link
Contributor

Fix #1422

  • Also remove call of testutil.DockerIncompatible in TestBuildLocal

Signed-off-by: Hanchin Hsieh [email protected]

@yuchanns yuchanns marked this pull request as ready for review October 21, 2022 10:38
@yuchanns
Copy link
Contributor Author

PTAL @junnplus @AkihiroSuda

testAliasFilePath := filepath.Join(aliasOutputDir, testFileName)
base.Cmd("build", "-o", aliasOutputDir, buildCtx).AssertOK()
if _, err := os.Stat(testAliasFilePath); err != nil {
t.Fatal(err)
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to use assert.NilError ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I was planning to fix it.

@AkihiroSuda AkihiroSuda added this to the v0.23.1 milestone Oct 21, 2022
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit c00780a into containerd:master Oct 21, 2022
@yuchanns yuchanns deleted the 1422 branch October 21, 2022 13:11
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.

nerdctl build should accept --output <DIR> as an alias of --output type=local,dest=<DIR>
2 participants