google/docsy-example

Update Netlify build command

chalin opened this issue · 2 comments

For context, see #156 (comment):

Studying the deploy log I realized, that git submodules still get checked out. This doesn't do any harm, but it is not necessary either. Maybe this can be corrected? If so, I think we should open a separate ticket for this.

From #156 (comment):

OK, so the build instruction on Netlify is currently:

cd themes/docsy && git submodule update -f --init && cd ../.. && hugo

So will automatically check out the submodules. With Hugo Modules will it just work by running hugo?

/cc @deining @LisaFC

@deining - I've updated the build command to be just hugo, and the build is failing with the following output:

11:26:53 AM: $ hugo
11:26:55 AM: hugo: downloading modules …
11:27:05 AM: go: github.com/google/docsy/dependencies@v0.2.0-pre.0.20220321183617-02df04c0f2d4: invalid pseudo-version: tag (v0.2.0-pre) found on revision 02df04c0f2d4 is already canonical, so should not be replaced with a pseudo-version derived from that tag
11:27:05 AM: hugo: collected modules in 12403 ms
11:27:05 AM: Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go: github.com/google/docsy/dependencies@v0.2.0-pre.0.20220321183617-02df04c0f2d4: invalid pseudo-version: tag (v0.2.0-pre) found on revision 02df04c0f2d4 is already canonical, so should not be replaced with a pseudo-version derived from that tag
11:27:05 AM:  *errors.errorString

Can you look into it? Thanks.

/cc @LisaFC

Can you look into it? Thanks.

This issue can be closed via #169.