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

Module issue on Windows/Go 1.24 #13465

Open
bep opened this issue Feb 28, 2025 · 1 comment
Open

Module issue on Windows/Go 1.24 #13465

bep opened this issue Feb 28, 2025 · 1 comment
Labels
Milestone

Comments

@bep
Copy link
Member

bep commented Feb 28, 2025

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.

@bep bep added this to the v0.145.0 milestone Feb 28, 2025
@bep
Copy link
Member Author

bep commented Feb 28, 2025

Hmm, this rogpeppe/go-internal#290 looks suspicious. I will try to downgrade that dependency and see if the error goes away.

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

No branches or pull requests

1 participant