Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kola: promote concept of sdk.LocalBuild throughout
Instead of keeping separate the build metadata object and the build directory, let's instead raise the visibility of `sdk.LocalBuild`, which bundles those two things together already. What I initially set out to solve was that `cosa kola --build ID` no longer worked, because we weren't passing `--cosa-build` to kola anymore. But even if we did, it's silly to have `cosa kola` dig into build dirs to fetch the path to the `meta.json` when `kola` now knows how to do that. Concretely, this changes three things: 1. we add a `--cosa-workdir` to allow specifying a cosa dir other than the current working dir. 2. the `--cosa-build` argument is now a build ID, not a path to a `meta.json`. 3 `kola.CosaBuild` is now a `LocalBuild` so that we also have access to the build directory everywhere.
- Loading branch information
Showing
9 changed files
with
72 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters