Start9Labs / hello-world-startos

wrapper for building a [service].s9pk
MIT License
13 stars 15 forks source link

Workaround snapd/AppArmor bug affecting Makefile #33

Closed 501st-alpha1 closed 2 months ago

501st-alpha1 commented 1 year ago

I installed yq on my Pop OS computer through Snap, but I think I ran into this snapd/AppArmor bug, because I was getting "permission denied" errors when running the yq commands in the Makefile here. (Got the same errors running the commands myself in a shell too.)

This commit works around the issue by passing the manifest.yaml content to yq via. a shell redirect rather than passing the filename to yq and letting it read the file contents.

(I know this bug isn't the fault of StartOS, but I figure this workaround could help anyone else using Pop OS to get up and running that much faster.)

See also: https://stackoverflow.com/a/76002505/2747593