Skip to content

Commit

Permalink
bake: check for empty source
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Mar 27, 2023
1 parent 2d105f7 commit 2d1ce9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/buildx/bake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export class Bake {
let remoteDef;
const files: Array<string> = [];
if (sources) {
for (const source of sources) {
for (const source of sources.map(v => v.trim())) {
if (source.length == 0) {
continue;
}
if (!Util.isValidRef(source)) {
files.push(source);
continue;
Expand Down

0 comments on commit 2d1ce9a

Please sign in to comment.