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

bug: website built failed for "Invalid Version: bindings/go/v0.1.0" #5002

Closed
1 task
Xuanwo opened this issue Aug 13, 2024 · 2 comments · Fixed by #5003
Closed
1 task

bug: website built failed for "Invalid Version: bindings/go/v0.1.0" #5002

Xuanwo opened this issue Aug 13, 2024 · 2 comments · Fixed by #5003
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed website

Comments

@Xuanwo
Copy link
Member

Xuanwo commented Aug 13, 2024

Describe the bug

Website build failed for:

> opendal-website@0.0.0 build /home/runner/work/opendal/opendal/website
> docusaurus build


Error:  Error: Docusaurus could not load module at path "/home/runner/work/opendal/opendal/website/docusaurus.config.js"
Cause: Invalid Version: bindings/go/v0.1.0

    at loadFreshModule (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+utils@3.4.0_@docusaurus+types@3.4.0_typescript@5.4.5/node_modules/@docusaurus/utils/lib/moduleUtils.js:36:15)
    at loadSiteConfig (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@18.3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/server/config.js:35:62)
    ... 3 lines matching cause stack trace ...
    at async Command.build (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@18.3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/commands/build.js:59:21) {
  [cause]: TypeError: Invalid Version: bindings/go/v0.1.0
  
      at new SemVer (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js:38:13)
      at Object.parse (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js:7:[12](https://github.com/apache/opendal/actions/runs/10367226772/job/28698682194#step:22:13))
      at /home/runner/work/opendal/opendal/website/docusaurus.config.js:50:30
      at /home/runner/work/opendal/opendal/website/docusaurus.config.js:52:6
      at evalModule (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js:1:2473[13](https://github.com/apache/opendal/actions/runs/10367226772/job/28698682194#step:22:14))
      at jiti (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js:1:245241)
      at loadFreshModule (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+utils@3.4.0_@docusaurus+types@3.4.0_typescript@5.4.5/node_modules/@docusaurus/utils/lib/moduleUtils.js:33:[16](https://github.com/apache/opendal/actions/runs/10367226772/job/28698682194#step:22:17))
      at loadSiteConfig (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@18.3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/server/config.js:35:62)
      at async Promise.all (index 1)
      at async loadContext (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@[18](https://github.com/apache/opendal/actions/runs/10367226772/job/28698682194#step:22:19).3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/server/site.js:34:97)
      at async getLocalesToBuild (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@18.3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/commands/build.js:80:21)
      at async Command.build (/home/runner/work/opendal/opendal/website/node_modules/.pnpm/@docusaurus+core@3.4.0_@docusaurus+types@3.4.0_react-dom@18.3.1_react@18.3.1_typescript@5.4.5/node_modules/@docusaurus/core/lib/commands/build.js:59:21)
}
[INFO] Docusaurus version: 3.4.0
Node version: v18.[20](https://github.com/apache/opendal/actions/runs/10367226772/job/28698682194#step:22:21).4
 ELIFECYCLE  Command failed with exit code 1.

Steps to Reproduce

Build website with go binding's tag.

Expected Behavior

Website build passed.

Additional Context

No response

Are you willing to submit a PR to fix this bug?

  • Yes, I would like to submit a PR.
@Xuanwo Xuanwo added the bug Something isn't working label Aug 13, 2024
@Xuanwo
Copy link
Member Author

Xuanwo commented Aug 13, 2024

Hi, @suyanhanx, would you like to take a look?

@Xuanwo Xuanwo added good first issue Good for newcomers website help wanted Extra attention is needed labels Aug 13, 2024
@suyanhanx
Copy link
Member

Thank you for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants