Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions change/change-b0cbf202-cf01-4765-8abe-769d88057f43.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"type": "patch",
"comment": "Show target.id in error about missing inputs",
"packageName": "@lage-run/hasher",
"email": "dobes@formative.com",
"dependentChangeType": "patch"
}
]
}
2 changes: 1 addition & 1 deletion packages/hasher/src/TargetHasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class TargetHasher {

if (target.cwd === root && target.cache) {
if (!target.inputs) {
throw new Error("Root-level targets must have `inputs` defined if it has cache enabled.");
throw new Error(`No "inputs" specified for target "${target.id}"; cannot cache.`);
}

const files = await globAsync(target.inputs, { cwd: root });
Expand Down