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

Autoupdate oiejq #222

Merged
merged 10 commits into from
Apr 21, 2024
Merged

Autoupdate oiejq #222

merged 10 commits into from
Apr 21, 2024

Conversation

MasloMaslane
Copy link
Member

No description provided.

@MasloMaslane MasloMaslane requested a review from otargowski April 18, 2024 14:02
Copy link
Contributor

@otargowski otargowski left a comment

Choose a reason for hiding this comment

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

Firstly, maybe we could future-proof this somewhat and also account for updates to the oiejq script itself?
Comparing hashlib.md5(open(path,'rb').read()).hexdigest() agains a saved md5 checksum should suffice.

Secondly, when oiejq is updated the user sees the following:

`oiejq` in `~/.local/bin/` not found, installing now...
`oiejq` was successfully installed.

I think that this is a bit misleading and may confuse the user.
If we don't want to properly differentiate between installing and updating oiejq then I'd suggest outputting sth like

Up to date `oiejq` in `~/.local/bin/` not found, installing new version...

@MasloMaslane
Copy link
Member Author

Does are good ideas, thanks

@MasloMaslane MasloMaslane requested a review from otargowski April 18, 2024 21:45
Copy link
Contributor

@otargowski otargowski left a comment

Choose a reason for hiding this comment

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

Can you add a few lines to test "updating" the oiejq script after e.g. appending '\n' to it?

src/sinol_make/__init__.py Outdated Show resolved Hide resolved
@MasloMaslane MasloMaslane requested a review from otargowski April 19, 2024 11:35
@MasloMaslane MasloMaslane merged commit 6cafe41 into main Apr 21, 2024
8 checks passed
@MasloMaslane MasloMaslane deleted the oiejq-autoupdate branch April 21, 2024 08:26
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