# Dependency issue? Build fails src/github.com/rclone/rclone/backend/ftp/ftp.go:401:37: undefined: ftp.DialWithForceListHidden

**URL:** <https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425>\
**Category:** Dev Discussions\
**Created:** [November 29, 2022, 5:29pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425 "2022-11-29T17:29:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcv21](https://forum.rclone.org/user_avatar/forum.rclone.org/mcv21/32/11951_2.png) [@mcv21](https://forum.rclone.org/u/mcv21)\
**Post date:** [November 29, 2022, 5:29pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/1 "2022-11-29T17:29:50Z")

</div>

Hi,  
I'm trying to update the Debian package of rclone, to 1.160. Having packaged up a bunch of the newer build-dependencies, I'm almost there, but the build is failing:

```auto
src/github.com/rclone/rclone/backend/ftp/ftp.go:401:37: undefined: ftp.DialWithForceListHidden

```

Now I've pulled in [GitHub - rclone/ftp: FTP client package for Go](http://github.com/rclone/ftp) (and, indeed, `DialWithForceListHidden` isn't defined there); I notice that is a fork of [GitHub - jlaffaye/ftp: FTP client package for Go](http://github.com/jlaffaye/ftp) and that _does_ have DialWithForceListHidden introduced in a later commit - [Add forceListHidden dial option to force the use of 'LIST -a' command… · jlaffaye/ftp@99be063 · GitHub](https://github.com/jlaffaye/ftp/commit/99be0634ab9a1a9a61630647096d3e63b6a4873e)

So what should I be trying to do here? get that commit applied to [GitHub - rclone/ftp: FTP client package for Go](http://github.com/rclone/ftp), using jlaffaye/ftp instead, or something else?

Thanks!

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 29, 2022, 9:15pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/2 "2022-11-29T21:15:40Z")

</div>

I think you've probably got the wrong branch of rclone/ftp - the commit ID is in the go.mod file

---

<div class="post-metadata">

**Author:** ![mcv21](https://forum.rclone.org/user_avatar/forum.rclone.org/mcv21/32/11951_2.png) [@mcv21](https://forum.rclone.org/u/mcv21)\
**Post date:** [November 30, 2022, 4:35pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/3 "2022-11-30T16:35:42Z")

</div>

Ah, yes, sorry, I looked at the tip of master and the version in Debian (v1.0.0-210902h). If I make a new library package based on e44dedbc76c6 which is the tip of dev-rclone-160 (and the commit has mentioned in go.mod) then it builds OK.

Would you be up for tagging that commit as a new version, please? It's sort of a de facto release, but it'll be easier to get the package in Debian updated to a new tagged version rather than just a commit hash...

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 30, 2022, 5:48pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/4 "2022-11-30T17:48:57Z")

</div>

I pushed a tag `v1.0.0-220913-160` hopefully that will work for you!

This repo is a temporary for while we get stuff upstream so hopefully not needed for much longer.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 30, 2022, 5:53pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/5 "2022-11-30T17:53:08Z")

</div>

Not sure we're doing the forking of upstream in the best way here...

When we rebase on upstream we create a new branch then cherry pick our unmerged commits onto that branch, so `dev-rclone-160` for the rclone v1.60 release - now with tag `v1.0.0-220913-160`.

Does that seem sensible to you?

I guess we could be doing it with merge commits on master however I'm not a big fan of non-linear history...

---

<div class="post-metadata">

**Author:** ![mcv21](https://forum.rclone.org/user_avatar/forum.rclone.org/mcv21/32/11951_2.png) [@mcv21](https://forum.rclone.org/u/mcv21)\
**Post date:** [November 30, 2022, 6:08pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/6 "2022-11-30T18:08:19Z")

</div>

Thanks, that should be just the ticket 🙂

---

<div class="post-metadata">

**Author:** ![mcv21](https://forum.rclone.org/user_avatar/forum.rclone.org/mcv21/32/11951_2.png) [@mcv21](https://forum.rclone.org/u/mcv21)\
**Post date:** [November 30, 2022, 6:14pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/7 "2022-11-30T18:14:14Z")

</div>

Much ink has been spilled on this topic!  
I tend to use a merging sort of workflow myself, especially if I expect my upstream to take all or nearly all of my changes (it's less work than new-branch-and-cherry-pick), but I think if you dislike nonlinear history and don't mind the extra work your process works fine 🙂 Debian does have some tooling for the latter (git-debrebase) to do a bunch of the work for you, but it's quite Debian-specific and also not entirely straightforward!

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 30, 2022, 8:35pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/8 "2022-11-30T20:35:49Z")

</div>

Thank you for your sage words. I should probably try the merging workflow on the next thing I have to fork temporary.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 30, 2023, 4:36pm UTC](https://forum.rclone.org/t/dependency-issue-build-fails-src-github-com-rclone-rclone-backend-ftp-ftp-go37-undefined-ftp-dialwithforcelisthidden/34425/9 "2023-01-30T16:36:07Z")

</div>

Closed on January 30, 2023, 4:36pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
