Skip to content

Multiple artifacts and/or metadata files are declared at the same output location unpack.sh #1

Closed
@steveklabnik

Description

@steveklabnik

First of all, very cool!

Second, I decided to give this a build on my machine. I'm using WSL, and I decided to try out dotslash:

#!/usr/bin/env dotslash

{
  "name": "buck2",
  "platforms": {
    "linux-x86_64": {
      "size": 31679931,
      "hash": "blake3",
      "digest": "18568d5b0d78748a9088dfce328c69ee81a4fb7e8017d3e679db65c285994ce1",
      "format": "zst",
      "path": "buck2",
      "providers": [
        {
          "type": "github-release",
          "repo": "facebook/buck2",
          "tag": "2025-05-01",
          "name": "buck2-x86_64-unknown-linux-gnu.zst"
        }
      ]
    }
  }
}

When I try to ./buck2 run stage2:rustc -- --version --verbose I get this:

Build ID: ddbeda42-644a-479d-9235-5245d2706270
Command: run.
Time elapsed: 0.0s
BUILD FAILED
Error running analysis for `rust//stage2:rustc (cfg:<empty>#397dda5f85c5448a)`

Caused by:
    0: Error running analysis for `rust//stage2:rustc (rust//platforms/stage2:compiler#7979eef5c530a256)`
    1: Error running analysis for `rust//:rustc-main-rustc-main (rust//platforms/stage2:compiler#7979eef5c530a256)`
    2: Error running analysis for `rust//:rustc-main-0.0.0-rustc-main (rust//platforms/stage2:compiler#7979eef5c530a256)`
    3: Error running analysis for `toolchains//:rust (rust//platforms/stage2:compiler#7979eef5c530a256) (rust//platforms/stage2:compiler-build-script#11300d7bb94cd8d6)`
    4: Error running analysis for `rust//stage1:rustc (rust//platforms/stage2:compiler-build-script#11300d7bb94cd8d6)`
    5: Error running analysis for `rust//stage1:rustc (rust//platforms/stage1:compiler#9b3dac76c891780a)`
    6: Error running analysis for `rust//:rustc-main-rustc-main (rust//platforms/stage1:compiler#9b3dac76c891780a)`
    7: Error running analysis for `rust//:rustc-main-0.0.0-rustc-main (rust//platforms/stage1:compiler#9b3dac76c891780a)`
    8: Error running analysis for `toolchains//:rust (rust//platforms/stage1:compiler#9b3dac76c891780a) (rust//platforms/stage1:compiler-build-script#4fa65a1586118b89)`
    9: Error running analysis for `rust//stage0:rustdoc (rust//platforms/stage1:compiler-build-script#4fa65a1586118b89)`
   10: Error running analysis for `rust//stage0:rustdoc (stage0#e75f176f4461b34e)`
   11: Error running analysis for `rust//stage0:extract (stage0#e75f176f4461b34e)`
   12: Traceback (most recent call last):
         File <builtin>, in <module>
         * stage0/defs.bzl:132, in _stage0_extract_impl
             contents, _ = unarchive(
         * prelude/http_archive/unarchive.bzl:169, in unarchive
             script, _ = ctx.actions.write(

       error: Multiple artifacts and/or metadata files are declared at the same output location `unpack.sh` declared at `prelude/http_archive/unarchive.bzl:169:17-178:6`.
          --> prelude/http_archive/unarchive.bzl:169:17
           |
       169 |       script, _ = ctx.actions.write(
           |  _________________^
       170 | |         "unpack.{}".format(ext),
       171 | |         [
       172 | |             cmd_args(script_output, format = mkdir),
       173 | |             cmd_args(script_output, format = "cd {}"),
       174 | |             cmd_args([unarchive_cmd] + exclude_flags, delimiter = " ", relative_to = script_output),
       175 | |         ],
       176 | |         is_executable = True,
       177 | |         allow_args = True,
       178 | |     )
           | |_____^
           |

I'm still a newbie at starlark, so I'm not sure if this is something on my end, or maybe something where this doesn't yet handle WSL correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions