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

Added support for the FTP protocol. #5849

Closed
wants to merge 5 commits into from
Closed

Conversation

arizvisa
Copy link
Contributor

@arizvisa arizvisa commented Feb 5, 2018

This was based on PR #2906, and so was delayed until that got merged upstream.

This is using the ftp client from https://github.com/jlaffaye/ftp as it was the only one I saw at the time that allowed support for resuming and thus could use a goroutine in order to allow interruption/resuming.

Closes issue #478.

@arizvisa
Copy link
Contributor Author

arizvisa commented Feb 5, 2018

Ok, apparently the continuous testing is failng on Go 1.7 because net/url.URL's .Port and .Hostname was introduced in Go 1.8. I'll let you guys know when I get around to writing up the workarounds for older versions of Go.

@arizvisa
Copy link
Contributor Author

arizvisa commented Feb 5, 2018

Ok, I removed the Go 1.8-only usage of .Hostname and .Port and replaced it with an explicit modification to the .Host variable. So it should be fixed and ready for review.

@arizvisa
Copy link
Contributor Author

arizvisa commented Feb 5, 2018

However, it seems that race issue in packer/rpc has triggered in both appveyor and travis-ci's Go 1.8x test?

@arizvisa
Copy link
Contributor Author

Re-based.

@arizvisa
Copy link
Contributor Author

Created issue #5902 for this PR.

@SwampDragons SwampDragons added this to the v1.2.2 milestone Feb 15, 2018
@SwampDragons SwampDragons added enhancement core Core components of Packer labels Feb 15, 2018
@SwampDragons
Copy link
Contributor

SwampDragons commented Mar 7, 2018

@arizvisa we're looking at moving to using https://github.com/hashicorp/go-getter for our downloader rather than doing everything in-house. I will probably hold off on reviewing this PR as well as your progress bar one until after that's all figured out (it's in our roadmap for this quarter, so I should be getting to it fairly soon). Just thought I'd let you know I haven't forgotten you, but I'm a little worried this work may be obsolete pretty soon.

@arizvisa
Copy link
Contributor Author

arizvisa commented Mar 7, 2018

ok. it's a pretty minimal change. but whatever you guys feel like doing. i've washed my hands of this pr already.

@SwampDragons
Copy link
Contributor

Okay, fair.

@SwampDragons
Copy link
Contributor

Closing this for now; I don't want to add FTP support and then remove it again once we move to the go-getter library. Sorry.

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Core components of Packer enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants