Mkdir failing at checkout [SOLVED}


I’ve been trying to get a very simple build to work. I’ve stripped out a lot of my yml to diagnose the issue, but I have failed. It always fails at line 2 in the checkout step, giving the error /bin/sh: 2: mkdir: not found. I’m pretty sure that isn’t the true error, but given that I have no clue how your build system works at the code level, I’m at a loss as to what the error could be. Any ideas?

version: 2
executorType: docker
  - image: redis:3.2
  - image: postgres:9.6
  - image: elasticsearch:2.4
  - image: python:3.6 # TODO: Make custom image that includes node + go + python deps

    parallel: 2
    workDir: ~/themuse
      CACHE_DIR: /build-cache
      BIN_CACHE_DIR: /build-cache/bin
      THEMUSE_DEPENDENCY_DIR: /build-cache/lib
      GO_VERSION: 1.7.5
      GOPATH: /build-cache/lib/go
      NODE_VERSION: 6.2.0
      - type: checkout

      - type: shell
        name: Setting up environment
        command: make circleci-init

      - type: deploy
        name: Deploying
        command: make circleci-deploy


Nevermind. I fixed the issue. It had to do with the PATH being set globally for use with our CCI 1.0 project. I had to override the PATH variable in the above circle.yml.


Thanks for sharing that. That actually wasn’t what I expected the problem to be. Was there a specific entry in there causing this problem, or does modifying it at all create this issue?


Had the same issue used circleci/node:boron, was wondering how did you override the PATH variable?


If you want to override it for just one command, you should be able to do something like this:

command: PATH=/whatever/you/want make circleci-deploy


manage to reset $PATH in

      - image: circleci/node:boron
      - PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin