fix(NA): inver bazel config args order on kbn_pm runBazel function (#137307) (#137339)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 93c38fee22)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
This commit is contained in:
Kibana Machine 2022-07-27 16:18:16 -04:00 committed by GitHub
parent faf828347b
commit b4f938d7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ function throwBazelError(log, name, code, output) {
async function runBazel(log, inputArgs, opts = undefined) {
const bazel = (await getBazelRunner()).runBazel;
const args = [...(opts?.offline ? ['--config=offline'] : []), ...inputArgs];
const args = [...inputArgs, ...(opts?.offline ? ['--config=offline'] : [])];
log.debug(`> bazel ${args.join(' ')}`);
await bazel(args, {
env: opts?.env,