Commit 4fd7f32 1 parent c3d435a commit 4fd7f32 Copy full SHA for 4fd7f32
File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,6 @@ license: "Apache-2.0"
29
29
source-code : https://github.com/gohugoio/hugo.git
30
30
website : https://gohugo.io/
31
31
32
- package-repositories :
33
- - type : apt
34
- components : [main]
35
- suites : [focal]
36
- key-id : 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
37
- url : https://deb.nodesource.com/node_16.x
38
-
39
32
plugs :
40
33
etc-gitconfig :
41
34
interface : system-files
@@ -88,6 +81,7 @@ environment:
88
81
# rst2html: PYTHONHOME and SNAP
89
82
# asciidoctor: RUBYLIB
90
83
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)$
84
+
91
85
apps :
92
86
hugo :
93
87
command : bin/hugo
@@ -145,7 +139,7 @@ parts:
145
139
146
140
HUGO_BUILD_TAGS="extended"
147
141
echo " * Building hugo (HUGO_BUILD_TAGS=\"$HUGO_BUILD_TAGS\")..."
148
- 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"
142
+ 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"
149
143
./hugo version
150
144
ldd hugo || :
151
145
@@ -199,8 +193,11 @@ parts:
199
193
200
194
node :
201
195
plugin : nil
202
- stage-packages :
203
- - nodejs
196
+ stage-snaps :
197
+ - node/22/stable
198
+ organize :
199
+ " LICENSE " : " LICENSE_NODE" # rename to prevent conflict with Go snap
200
+ " README.md " : " README_NODE.md" # rename to prevent conflict with Go snap
204
201
205
202
pandoc :
206
203
plugin : nil
You can’t perform that action at this time.
0 commit comments