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

Removed external dependency src/gutenberg2zim/templates/jquery/jquery… #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Prakhar-Shankar
Copy link
Contributor

Issue #198

Removed the external dependency - jquery-1.11.1.min.js
On running hatch build the dependency is getting downloaded to the repo

@@ -29,7 +30,7 @@ def deps_already_installed(self) -> bool:
for dep in JS_DEPS:
if (
not Path(self.root)
.joinpath("gutebergtozim/templates")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit puzzled by this change, does it means we had a bug which forced dependencies to always be re-downloaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sir I actually wrote gutenbergtozim instead of gutenberg2zim. That's why.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why this change then, I don't get it, sorry

Copy link
Contributor Author

@Prakhar-Shankar Prakhar-Shankar Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was a typo in the original code, it should be gutenberg2zim. I checked by running hatch build and it is working fine.

Copy link
Contributor Author

@Prakhar-Shankar Prakhar-Shankar Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry I changed it back to original and again it is working fine. I think we should stick to the original code. Should I make the changes?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why did you had to change this in the first place ? To me it looks like original code is wrong, but I would like to be sure about what we are doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it because after adding root directory, this code adds template which is under gutenberg2zim also the actual directory structure we observed when running ls -la src/ shows the directory name is gutenberg2zim. I have not changed it solve any bug I was going through the hatch_build.py file and thought this should be the correct line. But after you mentioned I changed it back to original and it is still working. I am also confused to be honest.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please investigate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure

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

Successfully merging this pull request may close these issues.

2 participants