Skip to content

Version 1.4.0 fails on mac os with error 'conditional binary operator expected' #9

Description

@GeorgeHahn

The changes released in version 1.4.0 throw an error on mac os runners.

Here's the relevant part of the Action log:

Run if [[ ! -v CARGO_INCREMENTAL ]]; then
  if [[ ! -v CARGO_INCREMENTAL ]]; then
    echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
  fi
  if [[ ! -v CARGO_PROFILE_DEV_DEBUG ]]; then
    echo "CARGO_PROFILE_DEV_DEBUG=0" >> $GITHUB_ENV
  fi
  if [[ ! -v CARGO_TERM_COLOR ]]; then
    echo "CARGO_TERM_COLOR=always" >> $GITHUB_ENV
  fi
  if [[ ! -v RUST_BACKTRACE ]]; then
    echo "RUST_BACKTRACE=short" >> $GITHUB_ENV
  fi
  if [[ ! -v RUSTFLAGS ]]; then
    echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
  fi
  # Enable faster sparse index on nightly
  # The value is ignored on stable and causes no problems
  # https://internals.rust-lang.org/t/call-for-testing-cargo-sparse-registry/16862
  if [[ ! -v CARGO_UNSTABLE_SPARSE_REGISTRY ]]; then
    echo "CARGO_UNSTABLE_SPARSE_REGISTRY=true" >> $GITHUB_ENV
  fi
  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
/Users/runner/work/_temp/<guid>.sh: line 1: conditional binary operator expected
Error: Process completed with exit code 2.

(from this CI run)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions