-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Building latest stable (1.57.0) with Go 1.17 produces warnings from ftp backend #5810
Comments
Hmm, If I try what the command suggests then I get
Which is more explicit. I don't understand exactly what that means though. It is discussed at length in this It is complaining about Line 5 in 4c93378
To fix this I think we'd need to get rid of the replace line and use the rclone fork explicitly in the code. I think this will fix both the @ivandeex do you think that will work? If this fix is correct it should go in a point release. |
It was reported a month ago here: The main reason is that the upstream library maintainer has been (and continues to be) unresponsive so we made a soft fork backed by replace directives in rclone's For now you can use the below flow instead of
By the way, go get is generally known to be bad on modules due to backwards compatibility with pre-module times. |
No. It's not enough. You also have to update |
Gotcha: go.mod and all the references to In the mean time our install instructions are broken https://rclone.org/install/#install-from-source I really think So how to fix - update instructions? Or go full fork? |
I don't think it's I'm for updating the docs to leave rclone team more freedom.
However the hard fact is @ncw Quickly glancing through previous requests submitted by @eharris I conclude that one of his workflows is dependent on one-line build so I guess he will not be happy. |
I don't depend on a one line build, although that would be nice. But I do kind of depend on being able to automate the build/update for the latest stable code without having to manually specify what tag that requires. (see #5811). |
This comment has been minimized.
This comment has been minimized.
Here is possible 3-line replacement for
|
Here is golang issue requesting to relax behaviors of |
Here is PowerShell replacement
|
I just received a github notification that upstream patches were accepted by jlaffaye. |
There are however requests to support rare FTP cases:
If (1) users submit it as feature requests here on github (2) we allocate time to implement, |
We might go the following way as a short term solution:
I'm not happy about it thou. Too much hassle. Higher odds of mistake.
@ncw thoughts? |
Third alternative:
|
I would like to make To hard fork
The fact that the ftp library doesn't have any sub modules makes keeping that one patch up to date quite easy I think. So we could then make I think that would work, and would play nice with upstream and also play nice with Merging code in from upstream could then be done with a merge commit or with a rebase and force push if we don't care about downstream git users. This probably needs a bit more thought but it is a very soft hard fork as essentially we'd only be carrying forward the patch to The other alternative is for you to volunteer to help maintain |
Hi, still no updates on this? |
I'd like to make sure this is fixed for 1.58.0 using one of the methods above! @ivandeex do you know if your patches have been merged upstream yet? |
Having a replace directive in go.mod causes "go get github.com/rclone/rclone" to fail as it discussed in this Go issue: golang/go#44840 This is apparently how the Go team want go.mod to work, so this commit hard forks github.com/jlaffaye/ftp into github.com/rclone/ftp so we can remove the `replace` directive from the go.mod file. Fixes #5810
I have done this now, so that In due course I expect we will revert to upstream ftp, but this will fix the main issue. Lessons learnt
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.58 |
...now all of our patches have been merged #5810
...now all of our patches have been merged #5810
The text was updated successfully, but these errors were encountered: