facebook / facebook/buck2

Artifact in anon_target

Open
#215 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

I'm attempting to pass an artifact through a anon_target call (the artifacts are projected)

```
return ctx.actions.anon_target(native.cxx_library, {
"srcs": pb_cc,
}).map(k)
```
```
Expected value of type `string`, got value with type `artifact`
```

@dtolnay suggested that passing an "artifact" through to an attrs.source is likely intended to work. Have I just hit an edge-case of type coercion or something like that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.