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

fix: check for --image flag in build command #1204

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

lance
Copy link
Member

@lance lance commented Aug 30, 2022

Changes

  • 🐛 check for --image flag in build command

If the user provides an --image flag on the command line, it should be used. This commit modifies the image resolving code to check whether or not the image name was provided on the command line.

Fixes: #1125

/kind bug

Release Note

Fixes a regression where the `--image` flag on `func build` was not being used

If the user provides an `--image` flag on the command line, it should be
used. This commit modifies the image resolving code to check whether or
not the image name was provided on the command line.

Fixes: knative#1125

Signed-off-by: Lance Ball <lball@redhat.com>
@knative-prow knative-prow bot added kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 30, 2022
@lance lance added this to the 0.99.0 Release milestone Aug 30, 2022
@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #1204 (c7282d8) into main (6a0b4a2) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1204      +/-   ##
==========================================
+ Coverage   45.20%   45.23%   +0.03%     
==========================================
  Files          68       68              
  Lines        9745     9746       +1     
==========================================
+ Hits         4405     4409       +4     
+ Misses       4940     4938       -2     
+ Partials      400      399       -1     
Impacted Files Coverage Δ
cmd/build.go 68.78% <100.00%> (+0.15%) ⬆️
cmd/root.go 76.33% <0.00%> (+1.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@lkingland lkingland left a comment

Choose a reason for hiding this comment

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

Looks good to me! Glad we have a test to catch that oversight if it pops up in the future.
/hold for others

cmd/build_test.go Outdated Show resolved Hide resolved
@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 31, 2022
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2022
@knative-prow
Copy link

knative-prow bot commented Aug 31, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance, lkingland

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Lance Ball <lball@redhat.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2022
@lkingland
Copy link
Member

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2022
@lance
Copy link
Member Author

lance commented Aug 31, 2022

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 31, 2022
@knative-prow knative-prow bot merged commit b8c4455 into knative:main Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

func build with -i does not use given image name
2 participants