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

Requesting a change to install hugo extended edition .deb #1053

Open
techmagus opened this issue Apr 29, 2024 · 2 comments
Open

Requesting a change to install hugo extended edition .deb #1053

techmagus opened this issue Apr 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@techmagus
Copy link

Requesting a new app ✨

If you are requesting a new app to be added to deb-get please complete the
following section, only one app per issue please.

Hugo is a static-site generator. There are two versions of Hugo.

  1. hugo (standard)
  2. hugo_extended

deb-get currently supports the regular hugo (standard) installer, however it currently lacks hugo_extended which is the recommended version (see: https://gohugo.io/installation/linux/ ).

Thank you!

@philclifford
Copy link
Member

philclifford commented Apr 30, 2024

if you want extended then cp /etc/deb-get/01-main.d/hugo /etc/deb-get/99-local.d/hugo
and just remove the '-v' :

--- /etc/deb-get/01-main.d/hugo	2024-04-15 15:28:53.000000000 +0100
+++ /etc/deb-get/99-local.d/hugo	2023-03-19 19:22:34.665564532 +0000
@@ -2,7 +2,7 @@
 ARCHS_SUPPORTED="amd64 arm64"
 get_github_releases "gohugoio/hugo" "latest"
 if [ "${ACTION}" != "prettylist" ]; then
-    URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v extended | head -n1 | cut -d'"' -f4)
+    URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep  extended | head -n1 | cut -d'"' -f4)
     VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
 fi
 PRETTY_NAME="Hugo"

Since the app is called hugo in both debs we can only support one or the other. If you want to change deb-get to install the extended edition then a PR with the above tiny change would accomplish that (and anyone wanting the standard edition would need to reverse the above patch).

@philclifford philclifford changed the title Requesting a new app: hugo_extended Requesting a change to install hugo extended edition .deb Apr 30, 2024
@philclifford philclifford added the enhancement New feature or request label Apr 30, 2024
@techmagus
Copy link
Author

Hi,

Thank you for the information. Yes, that would not be ideal.

I'll share this information in the Hugo forums as well and see if there's something that can be done to resolve the conflict. ^_^

I will opt for the local change for now. Thank you!

(P.S. Thread in Hugo forums: https://discourse.gohugo.io/t/deb-get-installation-of-hugo-extended/49563 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants