Correct compile errors#15
Conversation
- Patching ejs is no longer needed with the imports defined in `deno.json` - The compiler options allow including the worker
|
Hey @kikkia In readme.md make |
- Specify Debian for builder - Use `tini` for proper signals - Create appropriate cache directories
|
See #16 for that change. |
ac93bcc to
f6e4a7e
Compare
|
Hey I am trying to get some time to mess with the submodule stuff so I am more familiar before merging it in. Do you think you could break that out from the other stuff so we have a PR to submodule ejs separate to the rest? Then we can merge that in, and when I can mess with the submodules and get more familiar I can merge in that stuff? |
PadowYT2
left a comment
There was a problem hiding this comment.
I'm not the most familiar with Deno, but I think it would be much better if you would add ejs to deno.json. With Bun you could you could just do github:yt-dlp/ejs@2655b1f55f98e5870d4e124704a21f4d793b4e1c. But as this project is for Deno, I believe using https://esm.sh would be better than managing a submodule (e.g. https://esm.sh/gh/yt-dlp/ejs@2655b1f55f98e5870d4e124704a21f4d793b4e1c/src/yt/solver/solvers.ts)
Also I would recommended pinning to a version and not a hash
@PadowYT2 Tip The version tag corresponding to the currently pinned commit hash is: |
Alright, I don't think it's possible to do it just because Deno requires a build entry and you can't just directly use the paths to the TypeScript files. $ deno install
error: Module not found "https://esm.sh/gh/yt-dlp/ejs@0.3.0".But you could just do |
|
It's possible to do with an import map.
{
"imports": {
"@/ejs": "https://esm.sh/gh/yt-dlp/ejs@0.3.0?standalone",
"@/ejs/": "https://esm.sh/gh/yt-dlp/ejs@0.3.0&standalone/"
}
}Then you can import files using: import { ... } from "@/ejs/src/yt/solver/solvers.ts";@PadowYT2 I look forward to seeing your pull request using this method. |
use esm.sh instead of a submodule for ejs
|
@PadowYT2 Your suggested changes have been merged and I adjusted a few more things after the removal of the submodule. |
PadowYT2
left a comment
There was a problem hiding this comment.
Would love to make a PR on this but unavailable as of right now. Also update README.md to remove the ejs installation
PadowYT2
left a comment
There was a problem hiding this comment.
Everything looks good to me and runs just fine. Although the && in the README is useless as cd should be fine here
|
@kikkia How are things looking? It'd be great to merge this now that a submodule isn't being used at all. |
|
Hey @tcely I am super busy recently, I have had very little free time to do much side project stuff. I will take a look as soon as I can, I should have time in the next 24 hours :) |
|
Hey @kikkia,
I hope things have calmed for you. Let us know if there is anything more that can be done to let you merge these changes more easily. |
PR Type
Enhancement, Other
Description
Migrate from local ejs submodule to esm.sh CDN import
Update all imports to use JSR and deno.json mappings
Simplify Dockerfile by removing ejs patching and git operations
Improve cache directory handling with fallback logic
Update to Debian 13 distroless image with tini init system
Diagram Walkthrough
Manual summary
Used a submodule forejs1deno.jsonworker.tsFootnotes
More detailed information: https://git-scm.com/book/en/v2/Git-Tools-Submodules ↩