Add argument to specify output directory for `swift` or `xcodebuild` logs
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Source/SourceKittenFramework/Module.swift at init?(spmArguments:spmName:inPath), especially the default build result output directory calculation. Trace how Module launches swift and xcodebuild, then determine where an argument can control that directory. Done means CI users can select an output location instead of relying on /tmp/.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100