googleapis / googleapis/google-cloud-swift

ci: cleanup build_flags.sh

Open
#793 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
26
Forks
10
Avg merge
12h 56m
Merged PRs (30d)
211

Description

From coryan@:
```
scratch_flags=(
--scratch-path "/workspace/.build-cache"

)
build_directory_flags=(
--build-path "/workspace/.build"
)
if git rev-parse --show-toplevel >/dev/null 2>&1; then
scratch_flags=(
--scratch-path "$(git rev-parse --show-toplevel)/.build-cache"
)
build_directory_flags=(
--build-path "$(git rev-parse --show-toplevel)/.build"
)
fi
build_flags=(
-Xswiftc -warnings-as-errors
-Xswiftc -Wwarning
-Xswiftc DeprecatedDeclaration
# Use the versions from `Package.resolved`.
# --disable-automatic-resolution
)
build_flags+=("${scratch_flags[@]}")
build_flags+=("${build_directory_flags[@]}")
```

Contributor guide

Open the contributing guide

Research direction

Start by locating build_flags.sh and its callers, then inspect how the shown scratch, build-path, and Swift compiler flags are used in CI. Done when the cleanup is reflected consistently and the existing build commands continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, swift
Domain
build-system, ci-cd
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.