mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-25 21:21:22 +03:00
snap: Update Node.js to 22.x
This commit is contained in:
parent
c3d435acfa
commit
4fd7f3233f
1 changed files with 7 additions and 10 deletions
|
@ -29,13 +29,6 @@ license: "Apache-2.0"
|
||||||
source-code: https://github.com/gohugoio/hugo.git
|
source-code: https://github.com/gohugoio/hugo.git
|
||||||
website: https://gohugo.io/
|
website: https://gohugo.io/
|
||||||
|
|
||||||
package-repositories:
|
|
||||||
- type: apt
|
|
||||||
components: [main]
|
|
||||||
suites: [focal]
|
|
||||||
key-id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
|
|
||||||
url: https://deb.nodesource.com/node_16.x
|
|
||||||
|
|
||||||
plugs:
|
plugs:
|
||||||
etc-gitconfig:
|
etc-gitconfig:
|
||||||
interface: system-files
|
interface: system-files
|
||||||
|
@ -88,6 +81,7 @@ environment:
|
||||||
# rst2html: PYTHONHOME and SNAP
|
# rst2html: PYTHONHOME and SNAP
|
||||||
# asciidoctor: RUBYLIB
|
# asciidoctor: RUBYLIB
|
||||||
HUGO_SECURITY_EXEC_OSENV: (?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|SNAP|RUBYLIB)$
|
HUGO_SECURITY_EXEC_OSENV: (?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|SNAP|RUBYLIB)$
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
hugo:
|
hugo:
|
||||||
command: bin/hugo
|
command: bin/hugo
|
||||||
|
@ -145,7 +139,7 @@ parts:
|
||||||
|
|
||||||
HUGO_BUILD_TAGS="extended"
|
HUGO_BUILD_TAGS="extended"
|
||||||
echo " * Building hugo (HUGO_BUILD_TAGS=\"$HUGO_BUILD_TAGS\")..."
|
echo " * Building hugo (HUGO_BUILD_TAGS=\"$HUGO_BUILD_TAGS\")..."
|
||||||
go build -v -ldflags "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=snap:$(git describe --tags --always --match 'v[0-9]*' | sed 's/^v//; s/-/+git/; s/-g/./')" -tags "$HUGO_BUILD_TAGS"
|
go build -v -ldflags "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=snap:$(git describe --tags --always --match 'v[0-9]*' | sed 's/^v//; s/-/+git/; s/-g/./')" -tags "$HUGO_BUILD_TAGS"
|
||||||
./hugo version
|
./hugo version
|
||||||
ldd hugo || :
|
ldd hugo || :
|
||||||
|
|
||||||
|
@ -199,8 +193,11 @@ parts:
|
||||||
|
|
||||||
node:
|
node:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
stage-packages:
|
stage-snaps:
|
||||||
- nodejs
|
- node/22/stable
|
||||||
|
organize:
|
||||||
|
"LICENSE": "LICENSE_NODE" # rename to prevent conflict with Go snap
|
||||||
|
"README.md": "README_NODE.md" # rename to prevent conflict with Go snap
|
||||||
|
|
||||||
pandoc:
|
pandoc:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue