-
Notifications
You must be signed in to change notification settings - Fork 578
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
Upgrade hs.fs with lfs 1.8.0 #2346
Comments
Yeah this is going to be a painful merge, to the point that I almost wonder if we'd be better off looking at ways to split |
Well, the module hadn't been previously updated for 2.5 years... not sure how often this will be an issue. (The following are my thoughts after spending about 5 minutes looking at the code, so it may be partial or incomplete. If you want me to take a whack at it, I can in a couple of days; but in case someone else wants to give it a go sooner...) To make future updates as close to drop in as possible, and assuming that you didn't previously make any changes to the lfs code you copied in originally (changes to error reporting or arguments, etc.) I think how I'd approach this is as follows:
There may be some flags we need to set to make sure the OSX specific code is used... glancing at |
It looks like the only changes are (crossed out the irrelevant ones):
...so maybe it's just easier to just manually make these changes? |
@asmagill hmm, your plan is interesting, although the one issue I can see is that if someone has installed lfs from luarocks/whatever, and is using it in Hammerspoon, we have a potential problem with the global I'm wondering if we could start to shift towards having hs.fs for our code and hs.fs.lfs for unmodified upstream lfs, and we just don't call their Edit: Or maybe we don't have that namespace differentiation at all, and just keep the calls in hs.fs. That's probably better for users, they don't need to care that lfs is providing simple file/directory functionality. |
@asmagill - This might be another good thing to test/fix. |
Are you saying that this (the Or are you saying that we need to update |
Correct - as far as I can tell, this is the only difference. I went through all the commits in the new release in this comment to manually compare. |
While I agree we should do this, I'm kind of burnt out atm and need a break. If I understand correctly, this isn't actually adding "necessary" code, just "better" code that 5.4 can take advantage of, especially if If you want to take a crack at it, go for it, but unless one of you disagrees, I don't think this should hold up 0.9.81 if @cmsj does decide to land #2509 and release tonight/tomorrow. |
@latenitefilms There is a slight difference between the 1.8.0 Hammerspoon's just acts as an equivalent to We can get the same info with |
As
hs.fs
is at lest partially based onlfs
, it needs to be updated as version 1.8.0 of lfs has been released and specifies compatibility with 5.4, which we expect to be moving to soon.I've not tested the breaking code he gives below, but in any case, we should update for 5.4 if for no other reason.
The text was updated successfully, but these errors were encountered: