Skip to content

Add argument to specify output directory for swift or xcodebuild logs #787

@art-divin

Description

@art-divin

Context

The default method of calculating build result output directory in Module.swift's init?(spmArguments:spmName:inPath) cannot be set from the outside:

let file = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("swift-build-\(UUID().uuidString).log")

When using CI like CircleCI, /tmp/ may not be available and due to nature of artefacts spec in config.yaml,
it would be great to be able to control output directory for Module command's processes 'swift' and 'xcodebuild' as an argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions