cirruslabs/cirrus-cli

Syncing working directory - endless loop

findthebug opened this issue ยท 1 comments

Default cirrus script with Tart Image. Run Tart VM without cirrus, VM starts all good. If i use cirrus to start VM, i got message syncing working directory which blocks VM to start.

task:
  name: xCode Build
  macos_instance:
    image: ghcr.io/cirruslabs/macos-ventura-base:latest
  task_script:
    - echo "Hello from within a Tart VM!"
๐Ÿ•™ 'xCode Build' task 03:39
   โœ… pull virtual machine 0.5s
   โœ… clone virtual machine 0.1s
   โœ… boot virtual machine 6.3s
   ๐Ÿ•™ syncing working directory 03:27

How big is your directory that .cirrus.yml is located in? Cirrus CLI copies all files over inside the virtual machine which might take a while. Alternatively, you can try to run cirrus run --dirty which will mount the working directory and therefore will presume modifications made in your *_scripts.