js split - #224
Conversation
simoncozens
commented
Feb 28, 2025
- Correct paths
- Add missing build hook
- Oops, missing files
|
I get the same install failure as the CI when trying to pip install this locally. |
|
Yep, I need to update the URLs. |
|
Any chance you can get this to work today? I'd really like to merge both this and the main PR. |
|
I will get this working for test purposes, but the JS dependencies will need to be adjusted once again when the Fontra js-split PR is merged. |
|
This works, thanks! So, after the main js-split merge, we need to remove the I see "integrity" hashes in package-lock.json. Do these get invalidated after each push to the associated repo? Or how does this affect the management of the projects? Does dependabot pick these up? |
|
I'm locally trying to edit the gitpkg URLs in package.json, but when I then run As usual, I may be doing something wrong or misunderstand something. |
Right, yes.
This happened for me; I trashed the package-lock.json and tried again, and it worked. |
|
Hm, I did: diff --git a/src-js/projectmanager-rcjk/package.json b/src-js/projectmanager-rcjk/package.json
index b579a75..7e533cd 100644
--- a/src-js/projectmanager-rcjk/package.json
+++ b/src-js/projectmanager-rcjk/package.json
@@ -10,7 +10,7 @@
"projectmanager": "rcjk"
},
"dependencies": {
- "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?js-split-2",
- "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?js-split-2"
+ "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?main",
+ "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?main"
}
}Then
But keep getting the same error. (Does gitpkg.vercel.app update instanteneous, or could there be a delay, and it may still see the pre-split version?) |
|
Ah, it does work if I replace the branch with a specific commit. |
|
This would be the total diff after diff --git a/package-lock.json b/package-lock.json
index 731e711..ef363bb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -33,8 +33,8 @@
}
},
"node_modules/@fontra/core": {
- "resolved": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?js-split-2",
- "integrity": "sha512-ple17lpINSpmaQoMg5/MsbhknJJYVXp1Num+gNIqwUO7nwLs6naqUEEGY2RKgxkmekdPiG9wwPgXAbmLCj5FMw==",
+ "resolved": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?c604e72ad7c7b05b24848c50d253016f6e091c6a",
+ "integrity": "sha512-DOucz16A+mQIWS268snlqtwkkC1cxRjEntdssRacSd8ovozp2bbOqyH2VCD9Bl56FmRI3egLGthMzR9ZH3ikiw==",
"dependencies": {
"@fontra/core": "file:",
"bezier-js": "^6.1.4",
@@ -45,8 +45,8 @@
},
"node_modules/@fontra/projectmanager-filesystem": {
"version": "0.0.1",
- "resolved": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?js-split-2",
- "integrity": "sha512-kAjovyBM980oeAovQVHmjq6Nh1R2jklsql6ukRn+KS9tzXb/TMDvULHmMK6tjxNu0rMbo+hy4Q9R+qOrvPsBsg=="
+ "resolved": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?c604e72ad7c7b05b24848c50d253016f6e091c6a",
+ "integrity": "sha512-r3DI0zSI1WwDiyqE42+gBDuPtrMIeybZ8UgIKAWJs8LQPW4R4rDn238vJ5tZevNcRHufYG2aP5UGENblJ4iLRg=="
},
"node_modules/@fontra/projectmanager-rcjk": {
"resolved": "src-js/projectmanager-rcjk",
@@ -5189,8 +5189,8 @@
"name": "@fontra/projectmanager-rcjk",
"version": "0.0.1",
"dependencies": {
- "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?js-split-2",
- "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?js-split-2"
+ "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?c604e72ad7c7b05b24848c50d253016f6e091c6a",
+ "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?c604e72ad7c7b05b24848c50d253016f6e091c6a"
}
}
}
diff --git a/src-js/projectmanager-rcjk/package.json b/src-js/projectmanager-rcjk/package.json
index b579a75..3fdbe54 100644
--- a/src-js/projectmanager-rcjk/package.json
+++ b/src-js/projectmanager-rcjk/package.json
@@ -10,7 +10,7 @@
"projectmanager": "rcjk"
},
"dependencies": {
- "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?js-split-2",
- "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?js-split-2"
+ "@fontra/core": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/fontra-core?c604e72ad7c7b05b24848c50d253016f6e091c6a",
+ "@fontra/projectmanager-filesystem": "https://gitpkg.vercel.app/googlefonts/fontra/src-js/projectmanager-filesystem?c604e72ad7c7b05b24848c50d253016f6e091c6a"
}
} |
|
The question remains on how do we best maintain this. |
|
(Let me know if you want me to commit it in this state.) |
|
I think |
Except it didn't, and doesn't :( Hence my question about possible delay in gitpkg updating. |
|
So what do you recommend we'd do? I want to merge this PR today, too. |
|
It seems that the redirect to login (if not logged in) no longer works. Not sure if that is here or in the main fontra repo. |
|
I think I have a fix, just testing it. |
|
OK, there we go, npm was going mad about these packages not having proper versions, and |
|
Works for me. However, if I remove the |
|
Other than that, is this good to go for you? |
Not here, but in the main repo: https://github.com/googlefonts/fontra/issues/2074 |
No, we resolved the dependency problem and put the resolution into package.json so it doesn't need to think about it any more. |
Fine for me, I'll fix the redirect problem separately. |
The fact remains that if I remove the |
|
Urgh, now the main branch fails, despite the PR was all green. |
|
Will fix in the morning. |
|
I'm pretty sure this is what's happening:
"Yes". So, how can we organize this better? |