Skip to content

Bug: Linux Homebrew broken #71

@ryanm101

Description

@ryanm101
 imposter up -r                                                                                              
DEBU[0000] downloading https://github.com/imposter-project/imposter-go/releases/download/v1.4.0/imposter-go_linux_amd64.tar.gz 
FATA[0002] failed to fetch binary: failed to download binary: error renaming temp file to final destination: /tmp/imposter-go_linux_amd641466574130.tar.gz -> /home/<user>/.imposter/engines/golang/1.4.0/imposter-go_linux_amd64.tar.gz: rename /tmp/imposter-go_linux_amd641466574130.tar.gz /home/<user>/.imposter/engines/golang/1.4.0/imposter-go_linux_amd64.tar.gz: invalid cross-device link 
imposter up --log-level trace -r
TRAC[0000] using local CLI config file: /home/<user>/workspace/llamacpp-loader-api/mocks/.imposter.yaml 
TRAC[0000] CLI version requirement met [required: 1.3.2, current: 1.3.2] 
TRAC[0000] using golang library                         
TRAC[0000] ensured directory: /home/<user>/.imposter/engines/golang 
TRAC[0000] plugins are enabled                          
TRAC[0000] ensured directory: /home/<user>/.imposter/plugins 
TRAC[0000] ensured plugin directory: /home/<user>/.imposter/plugins/1.4.0 
TRAC[0000] file cache not supported by golang engine    
TRAC[0000] engine environment: [IMPOSTER_SUPPORT_LEGACY_CONFIG=true PATH=/home/<user>/workspace/llamacpp-loader-api/.venv/bin:/home/<user>/.rd/bin:/home/<user>/.poetry/bin:/home/<user>/go/bin:/home/<user>/.krew/bin:/home/<user>/bin:/home/<user>/.local/bin:/usr/local/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/<user>/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/home/<user>/.dotnet/tools:/home/<user>/.krew/bin:/usr/local/cuda/bin:/home/<user>/.lmstudio/bin HOME=/home/<user> IMPOSTER_CONFIG_SCAN_RECURSIVE=true IMPOSTER_LOG_LEVEL=TRACE IMPOSTER_PORT=8080 IMPOSTER_CONFIG_DIR=/home/<user>/workspace/llamacpp-loader-api/mocks IMPOSTER_PLUGIN_DIR=/home/<user>/.imposter/plugins/1.4.0 IMPOSTER_EXTERNAL_PLUGINS=true] 
TRAC[0000] attempting to download imposter-go_linux_amd64.tar.gz version 1.4.0 to /home/<user>/.imposter/engines/golang/1.4.0/imposter-go_linux_amd64.tar.gz 
DEBU[0000] downloading https://github.com/imposter-project/imposter-go/releases/download/v1.4.0/imposter-go_linux_amd64.tar.gz 
TRAC[0006] removing temp file: /tmp/imposter-go_linux_amd643764777093.tar.gz 
FATA[0006] failed to fetch binary: failed to download binary: error renaming temp file to final destination: /tmp/imposter-go_linux_amd643764777093.tar.gz -> /home/<user>/.imposter/engines/golang/1.4.0/imposter-go_linux_amd64.tar.gz: rename /tmp/imposter-go_linux_amd643764777093.tar.gz /home/<user>/.imposter/engines/golang/1.4.0/imposter-go_linux_amd64.tar.gz: invalid cross-device link 
  1. Nothing gets downloaded.
  2. Using wget on the link downloads the correct binary
  3. Moving the downloaded binary to /tmp/imposter-go_linux_amd641466574130.tar.gz and re-runing imposter up -r still fails

.imposter.yaml

engine: golang
version: 1.4.0
startTimeout: 60

env:
  IMPOSTER_SUPPORT_LEGACY_CONFIG: true

cli:
  version: 1.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions