Skip to content
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

Documentation: Installation: Linux: Snap: a warning should be put there about Snap's known shortcoming due to Snap's strict confinement policy #2049

Closed
kirisakow opened this issue Apr 8, 2023 · 1 comment · Fixed by #2050

Comments

@kirisakow
Copy link
Contributor

kirisakow commented Apr 8, 2023

Problem

Installing Hugo with Snap results in shortcomings, and these have already been abundantly discussed since 2016 (see issues gohugoio/hugo#10757 gohugoio/hugo#10337 gohugoio/hugo#5573 gohugoio/hugo#4336 gohugoio/hugo#3143 gohugoio/hugo#2532). Still, to this day there is no warning about that matter in the Snap section of the installation documentation.

Proposal

Add a warning saying something like

⚠️ Keep in mind that due to Snap's strict confinement policy, installing Hugo with Snap will make it impossible to run the main Hugo commands (hugo mod, hugo new, hugo server) in directories located outside the user's home directory.

@jmooring
Copy link
Member

jmooring commented Apr 9, 2023

I will add a note next to the Snap installation instructions, but this is inaccurate:

will make it impossible to run the main Hugo commands (hugo mod, hugo new, hugo server) in directories located outside the user's home directory.

The isolation provided by strict confinement does not prevent you from running the hugo commands in any directory. Instead, it prevents you from creating and building sites outside of your $HOME directory or outside of directories on removable media.

We have permission to offer classic confinement, but have taken the conservative approach to isolation--opening interfaces as needed is simple; closing them after release is not. There are currently around 13,000 snap installations in the wild, and the requests for classic confinement have been limited.

The Hugo snap package initially had a number of limitations related to dependencies (Git, Go, Dart Sass, etc.). @anthonyfok has done a remarkable job of removing these limitations, and I am grateful for his efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants