Skip to content

Commit

Permalink
Merge pull request #83 from crazy-max/bake-empty-source
Browse files Browse the repository at this point in the history
bake: check for empty source
  • Loading branch information
crazy-max authored Mar 28, 2023
2 parents 2d105f7 + 2d1ce9a commit e185293
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 e185293

Please sign in to comment.