Proposed changes to `bindings --pkg-name`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reviewing the bindings --pkg-name behavior in wit-bindgen-go and componentize-go, using the current command sequence in the issue as the baseline. The work is done when componentize-go bindings --output internal --pkg-name internal creates both imports and exports folders and the separate --export-pkg-name option can be removed.
Written by the indexing model from the issue text.
Description
I think that the bindings --pkg-name option should automatically create imports and exports folders. This would mean that we could also remove the bindings --export-pkg-name option. I think this would offer more clarity and less friction. This will require edits to both wit-bindgen-go and componentize-go.
Just in case the above isn't clear:
Current:
$ mkdir -p internal/exports
$ componentize-go \
bindings \
--output internal/imports \
--pkg-name internal/imports \
--export-pkg-name internal/exports
$ mv internal/imports/wit_exports imports/exports
$ ls internal
exports imports
Proposed:
$ componentize-go bindings --output internal --pkg-name internal
$ ls internal
exports imports
@dicej Any thoughts/concerns?
- Dominant language
- Rust
- Stars
- 18
- Forks
- 8
- Avg merge
- 6h 57m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bytecodealliance/componentize-go
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
bytecodealliance/componentize-go#68 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
bytecodealliance/componentize-go#66 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 63/100
bytecodealliance/componentize-go#64 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in bytecodealliance/componentize-go
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100