Skip to content

successive linux builds fail to instantiate toolchain #303

@jhheider

Description

@jhheider

at least in our docker image; possibly elsewhere:

pkgx $ bk b yarnpkg.com=3.8
env +git-scm.org +pkgx.sh/brewkit^0,^1
env -git-scm.org -pkgx.sh/brewkit^0,^1
  
  computing configuration
pkg: yarnpkg.com=3.8.0
src: /work/srcs/yarnpkg.com-3.8.0
build: /work/builds/yarnpkg.com-3.8.0
home: /work/homes/yarnpkg.com-3.8.0
install: ~/.pkgx/yarnpkg.com/v3.8.0
build-install: ~/.pkgx/yarnpkg.com/v3.8.0+brewing
  
  fetch & extract
  
  stage
rsync /work/projects/yarnpkg.com /work/builds/yarnpkg.com-3.8.0/props
error: Uncaught (in promise) AlreadyExists: File exists (os error 17): symlink '/root/.pkgx/llvm.org/v*/bin/clang' -> '/work/homes/yarnpkg.com-3.8.0/toolchain/cc'
    Deno.symlinkSync(target.string, this.string)
         ^
    at Object.symlinkSync (ext:deno_fs/30_fs.js:541:3)
    at Path.ln (https://deno.land/x/libpkgx@v0.17.0/src/utils/Path.ts:377:10)
    at symlink (file:///root/.pkgx/pkgx.sh/brewkit/v1.12.0/bin/cmd/build:178:14)
    at make_toolchain (file:///root/.pkgx/pkgx.sh/brewkit/v1.12.0/bin/cmd/build:182:5)
    at file:///root/.pkgx/pkgx.sh/brewkit/v1.12.0/bin/cmd/build:84:24
    at eventLoopTick (ext:core/01_core.js:182:7)

currently, rm -rf homes/yarnpkg.com=3.8.0 && bk b yarnpkg.com=3.8 works as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions