Skip to content

Commit

Permalink
Use the given clean argument when building a single target (#1458)
Browse files Browse the repository at this point in the history
* Fix build cleaning when it shouldn't

* Update CHANGELOG

Co-authored-by: Pedro Pi帽era <pedro@ppinera.es>
  • Loading branch information
Pedro Pi帽era Buend铆a and Pedro Pi帽era committed Jun 16, 2020
1 parent d7f167f commit 61c9443
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/

## Next

### Fixed

- `tuist build` cleaning even if the `--clean` argument is not passed [#1458](https://github.com/tuist/tuist/pull/1458) by [@pepibumur](https://github.com/pepibumur).

## 1.11.0 - Volare

### Added
Expand Down
2 changes: 1 addition & 1 deletion Sources/TuistKit/Services/BuildService.swift
Expand Up @@ -63,7 +63,7 @@ final class BuildService {
guard let scheme = buildableSchemes.first(where: { $0.name == schemeName }) else {
throw BuildServiceError.schemeNotFound(scheme: schemeName, existing: buildableSchemes.map(\.name))
}
try buildScheme(scheme: scheme, graph: graph, path: path, clean: true, configuration: configuration)
try buildScheme(scheme: scheme, graph: graph, path: path, clean: clean, configuration: configuration)
} else {
var cleaned: Bool = false
try buildableSchemes.forEach {
Expand Down

0 comments on commit 61c9443

Please sign in to comment.