New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full integration of snapcraft #914
Comments
which fields are missing? (besides |
If you have a documentation link it will also be helpful. I tried looking into https://docs.snapcraft.io/snapcraft-yaml-reference/4276, but couldn't find anything related to Another question I have is: can I declare dependencies? For example, if I have an app that depends on git... how can I make it work? |
Hi Carlos, So here's what I was thinking (apart from the fields you already support): Parts For example, this include: parts: But this could look different for other languages, like python for instance - this isn't the scope of go, but the idea is that there are keywords you might not necessarily use in a given scenario, but they could exist, and someone may try them. parts: Anyway, these are two examples where you also use plugins to build, with language-specific overrides. There could also be stage packages and build packages: parts: BTW, we have language guide wizards here: https://snapcraft.io/first-snap This is the more relevant documentation: Hooks Conditional triggers: I agree that the current documentation can be improved, and I'll take your feedback as another pointer on this. My suggestion would be - if there's a declaration that you don't support it at the moment, ignore it and pass it on to snapcraft as is, and worse case, there will be an error in snapcraft but the build won't be blocked by goreleaser. Hopefully, this makes sense. Thanks.
|
Since snapcore/snapd#5845 is solved, we can set files permitted to be edited by software. (without having to be plugs:
personal-files:
read:
- $HOME/.kube/config
- $HOME/.minikube/client.key
- $HOME/.minikube/client.crt
- $HOME/.minikube/ca.crt This is not in
Here is a complete list of yaml parameters: https://github.com/snapcore/snapd/blob/master/snap/info_snap_yaml.go#L35
|
if I understand correctly, the |
You can use parts with the dump plugin - so you don't compile, you just grab the source. But then, if you compiled with different libraries than snapcraft has (in its base), you will need to specify them as stage packages. https://docs.snapcraft.io/the-dump-plugin/8007 But if you support all parts/plugins, developers have the options to choose what they need. Thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This feature would be really great to have! We're building a static site generator with a Go CLI that requires running npm and node to compile svelte components. Unfortunately we aren't able to execute npm/node outside of our snap: plentico/plenti#31 I was able to add |
happy to review a PR on that. :) FWIW there is one opened that adds some stuff #1553 |
Thanks and sorry if I came across as demanding. Goreleaser is amazing, I def appreciate all the hard work the team is doing :). |
No problem at all, just that I don't have time to work on this right now, so if someone can work on a PR it would be awesome :) sorry if I sounded defensive or something, was not the intent |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Snapcraft 3.0 introduces new functionality that is currently not supported in goreleaser. It would be really useful to reflect these changes in goreleaser and allow full compatibility with snapcraft.
Example: base:core18
The base keyword specifies a special kind of snap that provides a minimal set of libraries common to most applications, and it is mounted as the root filesystem for application.
Proposed enhancement
Allow developers to import entire snapcraft.yaml into .goreleaser.yml as is, and then selectively replace specific fields, e.g. name, description using variables (to allow integration and automatic builds), but then pass other declarations to snapcraft without additional syntactic checks (in these are not explicitly supported in goreleaser).
The text was updated successfully, but these errors were encountered: