I’m attempting to package a plugin. After using the yak.exe command ‘spec’, a manifest file is created with a yaml setting called secret, with a guid style id.
secret:
id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
What is this? Do I need this? What secret should be stored in a manifest yaml?
The documentation about the package manifest is not very clear on what this is.
Hi @arendvw, the “secret” is just the GUID of the plug-in. It’s used as a fallback when searching for missing Grasshopper plug-ins that are required for a file that has just been opened. This fallback is necessary in case the name of a plug-in doesn’t match the name of its package.
It’s the GH_AssemblyInfo one. The yak spec command should have pre-populated this for you (assuming it existed), however no spaces are allowed so these will have been replaced with -. Differences in case are fine, since the package names are treated as case-insensitive on the server.
One thing that I forgot above is that if the folder in which you run yak spec contains a .rhp and a .gha file then the .rhp is the one that will be inspected. If you want package restore to work with your .gha then you’ll need to make sure that the package name matches the GH_AssemblyInfo name, or replace the secret.id with its GUID (or re-run yak spec with the .rhp temporarily removed from the directory).