Skip to content

Module issue on Windows/Go 1.24 #13465

@bep

Description

@bep

This comes from a test that sometimes passes, but it suggest a issue introduced in Go 1.24 on Windows, and that the problem may be a real one for Hugo Windows end users.

Note to self that this may also be the newly upgraded go-internals package.

--- FAIL: TestCommands (0.00s)
    --- FAIL: TestCommands/mod_npm_withexisting (2.70s)
        testscript.go:584: # Test mod npm.
 (2.569s)
            > dostounix golden/package.json
            > hugo mod npm pack
            [stdout]
            hugo: downloading modules …
            [stderr]
            go: no module dependencies to download
            go: github.com/gohugoio/hugoTestModule2@upgrade: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in $WORK\hugocache\modules\filecache\modules\pkg\mod\cache\vcs\d2f91cdfc76314648077ca39b736383f6f0c08314f7cec8ae977d44a738e2220: exit status 128:
            	error: unable to write file $WORK\hugocache\modules\filecache\modules\pkg\mod\cache\vcs\d2f91cdfc76314648077ca39b736383f6f0c08314f7cec8ae977d44a738e2220/objects/bb/e586b1c18a6309b2fad34cca634ef6d5297ddc: No such file or directory
            	fatal: failed to write object
            	fatal: unpack-objects failed
            hugo: collected modules in 2231 msfailed to load modules: failed to get ["github.com/gohugoio/hugoTestModule2@upgrade"]: failed to execute 'go [get github.com/gohugoio/hugoTestModule2@upgrade]': failed to execute binary "go" with args [get github.com/gohugoio/hugoTestModule2@upgrade]: go: github.com/gohugoio/hugoTestModule2@upgrade: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in $WORK\hugocache\modules\filecache\modules\pkg\mod\cache\vcs\d2f91cdfc76314648077ca39b736383f6f0c08314f7cec8ae977d44a738e2220: exit status 128:
            	error: unable to write file $WORK\hugocache\modules\filecache\modules\pkg\mod\cache\vcs\d2f91cdfc76314648077ca39b736383f6f0c08314f7cec8ae977d44a738e2220/objects/bb/e586b1c18a6309b2fad34cca634ef6d5297ddc: No such file or directory
            	fatal: failed to write object
            	fatal: unpack-objects failed
             *errors.errorString
            [exit status 1]
            FAIL: testscripts\commands\mod_npm_withexisting.txt:5: unexpected command failure

I will skip the above test on Windows for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions