Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions Sources/SWBTaskExecution/TaskActions/TaskAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ open class TaskAction: PlannedTaskAction, PolymorphicSerializable
{
let md5 = InsecureHashContext()
md5.add(bytes: serializedRepresentationSignature!)
for arg in task.commandLine {
md5.add(bytes: arg.asByteString)
for arg in task.type.commandLineForSignature(for: task) ?? [] {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the meaning of a nil result here? Should the fallback be the regular command line instead of empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

md5.add(bytes: arg)
md5.add(number: 0)
}
task.environment.computeSignature(into: md5)
Expand Down