tweag / rules_sh

Shell rules for Bazel
Apache License 2.0
42 stars 3 forks source link

Bazel version on BuildKite agent #4

Closed aherrmann closed 4 years ago

aherrmann commented 4 years ago

The BuildKite pipeline for rules_sh fails at the moment because of a Bazel version mismatch. rules_sh requires a more recent version than is installed on the agent.

Ideally the rules_sh pipeline would be able to define which Bazel version it requires, and that version would be available on the agent in some form.

Since we're testing different rules sets on the same agents, it will most likely be necessary to have multiple different versions of Bazel available. For reproducibility it seems best if the pipeline defines the required Bazel version.

This pipeline is specifically testing Bazel without nixpkgs, therefore nix-shell does not seem like the right solution.

aherrmann commented 4 years ago

For rules_haskell we require two separate environments on the CI agent. One with Nix available to test the nixpkgs integration, and one without Nix to test the bindists configuration. Separately testing in NixOS would also be useful.

aherrmann commented 4 years ago

This is fixed in rules_sh since https://github.com/tweag/rules_sh/pull/5 and in rules_haskell since https://github.com/tweag/rules_haskell/pull/1252.