-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Update script not working on Windows #389
Comments
Hey @rise-above-the-machines thanks for reporting! I think it's due to the windows pathing schema. I assumed |
Fixed it locally, just installing a Windows VM to verify. |
My pleasure and THANK YOU! Please let em know if there's anything I can do to help. |
Btw im pushing to github and have /.git , whats /.github and should I create it manually or what? one side question, in the docs https://docs.next-forge.com/migrations/documentation/fumadocs#search I cant find this anywhere int he app. Is this an old doc or is ORama still in here? Im wondering how to add advanced search and if Orama is in the structure. Any info is appricaited <3 |
@rise-above-the-machines I've pushed an update that uses Node's |
Thanks for your feedback. I tried but no luck :) PS C:\Users\16478\Documents\my-apps\next-forge-3> npx next-forge@latest update --from 2.21.11 --to 3.0.19 Preparing to update from v2.21.11 to v3.0.19... So then I tried copying the .github folder from next-forge-update to my apps root folder and running the command again: I'm always pushing to github, but just incase, tried git init to have initialize one if needed. PS C:\Users\16478\Documents\my-apps\next-forge-3> npx next-forge@latest update --from 2.21.11 --to 3.0.19 PS C:\Users\16478\Documents\my-apps\next-forge-3> |
Getting the same error. |
Quick update: it's got to do with how I'm parsing the filenames. Currently it's comparing Should be |
@Ale1x @rise-above-the-machines Issue is fixed! Simplifying the |
Thank you ! I managed to make it work by creating an .md file, but it wasn’t entirely smooth sailing. Some files in my project were "reset," which I understand might be normal during the process. For example the sidebar. Could you please update the guide with more detailed instructions on how to transfer without losing or resetting existing files? This would be incredibly helpful. |
Describe the bug
The update script is failing
next-forge version
I am using version 2.21.11
To Reproduce
Steps to reproduce the behavior:
Running: npx next-forge@latest update --from 2.21.11 --to 3.0.14
Expected behavior
[Log]
Preparing to update from v2.21.11 to v3.0.14...
Creating temporary directory...
Cloning next-forge...
Checking out version v2.21.11...
Checking out version v3.0.14...
Computing diff between versions...
fatal: Invalid path '/.github': No such file or directory
Failed to update project: Command failed: git diff v2.21.11 v3.0.14 -- .github/CODE_OF_CONDUCT.md
fatal: Invalid path '/.github': No such file or directory
I have a hidden .git folder but no .github
So I
PS C:\Users\16478\Documents\my-apps\winnerr> mkdir .github
Mode LastWriteTime Length Name
d----- 2025-01-06 11:22 AM .github
PS C:\Users\16478\Documents\my-apps\winnerr> npx next-forge@latest update --from 2.21.11 --to 3.0.14
Preparing to update from v2.21.11 to v3.0.14...
Creating temporary directory...
Cloning next-forge...
Checking out version v2.21.11...
Checking out version v3.0.14...
Computing diff between versions...
fatal: Invalid path '/.github': No such file or directory
Failed to update project: Command failed: git diff v2.21.11 v3.0.14 -- .github/CODE_OF_CONDUCT.md
fatal: Invalid path '/.github': No such file or directory
PS C:\Users\16478\Documents\my-apps\winnerr> cd .github
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:3 char:1
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:4 char:1
Mode LastWriteTime Length Name
d----- 2025-01-06 11:23 AM ISSUE_TEMPLATE
d----- 2025-01-06 11:23 AM workflows
PS C:\Users\16478\Documents\my-apps\winnerr.github> ni CODE_OF_CONDUCT.md
Mode LastWriteTime Length Name
-a---- 2025-01-06 11:23 AM 0 CODE_OF_CONDUCT.md
-a---- 2025-01-06 11:23 AM 0 CONTRIBUTING.md
-a---- 2025-01-06 11:23 AM 0 SECURITY.md
PS C:\Users\16478\Documents\my-apps\winnerr.github> npx next-forge@latest update --from 2.21.11 --to 3.0.14
Preparing to update from v2.21.11 to v3.0.14...
Creating temporary directory...
Cloning next-forge...
Checking out version v2.21.11...
Checking out version v3.0.14...
Computing diff between versions...
fatal: Invalid path '/.github': No such file or directory
Failed to update project: Command failed: git diff v2.21.11 v3.0.14 -- .github/CODE_OF_CONDUCT.md
fatal: Invalid path '/.github': No such file or directory
PS C:\Users\16478\Documents\my-apps\winnerr.github>
The text was updated successfully, but these errors were encountered: