jpsim / jpsim/SourceKitten

Add argument to specify output directory for `swift` or `xcodebuild` logs

Open
#787 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.