← Back to issue list

Docs: Add a tutorial dedicated to the "default plugin + multiple binaries" scenario

View original Github issue

Metadata

Project
snapcraft
Number
#5040
Type
issue
State
open
Author
sed-i
Labels
Created
2024-09-14 01:05:11+00:00
Updated
2024-09-14 03:56:15+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Go and rust projects often pack perfectly fine by using the plugins. Often, there are multiple binaries produced by `go build` or `cargo build`. Please add a tutorial that walks users through: 1. Setting up a minimal `snapcraft.yaml` that uses just the plugin. 2. [Poking](https://snapcraft.io/docs/iterating-over-a-build) through the parts as they are built in search of the binaries. I.e. how am I supposed to know to use `command: bin/my_app`? And what about other binaries? I'd like to see what are their names and prime (?) them as well. Just as an example, moving from using the plugin as is, to packing several binaries is [not trivial](https://github.com/sed-i/nushell-snap/commit/3c174608c50665846f333a6d59537bffa0a27aba). Almost every line in that diff went through a failed pack. ### Why it needs to get done Craft-parts can be challenging to grasp, so it would help a lot to have a basic tutorial that guides the user through a discovery process.

Evaluation history

No evaluation history available.