lure failing with replacement directory /home/elara/Code/drpc does not exist error #4

Closed
opened 2023-03-28 19:40:36 +00:00 by santi · 1 comment
user@x270:~$ lure in itd
--> Pulling repository name="default"
--> Repository up to date name="default"
? Choose which package(s) to install default/itd-git 188.271510d
? Would you like to view the build script for itd-git No
--> Building package name="itd-git" version="188.271510d"
--> Installing build dependencies
--> Installing dependencies
--> Downloading sources
--> Source can be updated, updating if required source="itd-git[0]" downloader="git"
--> Source found in cache, linked to destination source="itd-git[0]" type="dir"
--> Executing version()
--> Updating version new="253.6113ac0"
--> Executing build()
go generate
go: downloading github.com/gen2brain/dlgs v0.0.0-20220603100644-40c77870fa8d
go: downloading github.com/hanwen/go-fuse/v2 v2.2.0
go: downloading github.com/knadh/koanf v1.4.4
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading github.com/mozillazg/go-pinyin v0.19.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go build
socket.go:31:2: go.arsenm.dev/drpc@v0.0.0-20230104221210-aa7525743d98: replacement directory /home/elara/Code/drpc does not exist
make: *** [Makefile:7: all] Error 1
 -> Error building package error="exit status 2"

Installed itd from the .deb package, tried to use lure to install itgui, ran into this error. Before submitting it over there, uninstalled itd, tried to install that with lure, got the same error. Somebody forgot to use a relative link somewhere :^)

``` user@x270:~$ lure in itd --> Pulling repository name="default" --> Repository up to date name="default" ? Choose which package(s) to install default/itd-git 188.271510d ? Would you like to view the build script for itd-git No --> Building package name="itd-git" version="188.271510d" --> Installing build dependencies --> Installing dependencies --> Downloading sources --> Source can be updated, updating if required source="itd-git[0]" downloader="git" --> Source found in cache, linked to destination source="itd-git[0]" type="dir" --> Executing version() --> Updating version new="253.6113ac0" --> Executing build() go generate go: downloading github.com/gen2brain/dlgs v0.0.0-20220603100644-40c77870fa8d go: downloading github.com/hanwen/go-fuse/v2 v2.2.0 go: downloading github.com/knadh/koanf v1.4.4 go: downloading github.com/mitchellh/copystructure v1.2.0 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/pelletier/go-toml v1.9.5 go: downloading github.com/mozillazg/go-pinyin v0.19.0 go: downloading github.com/mitchellh/reflectwalk v1.0.2 go build socket.go:31:2: go.arsenm.dev/drpc@v0.0.0-20230104221210-aa7525743d98: replacement directory /home/elara/Code/drpc does not exist make: *** [Makefile:7: all] Error 1 -> Error building package error="exit status 2" ``` Installed `itd` from the .deb package, tried to use `lure` to install `itgui`, ran into this error. Before submitting it over there, uninstalled `itd`, tried to install _that_ with `lure`, got the same error. Somebody forgot to use a relative link somewhere :^)
Owner

It looks like a replace directive was left in ITD's go.mod. I've removed the directive and pushed the updated drpc library that it was referencing to git so that it's no longer required. It should be working now. If you're going to install itgui from LURE, you should probably also install ITD from there instead of the release, at least for now, because the socket protocol has changed and I haven't tagged a new release with it yet. Please let me know if there are any other issues.

It looks like a `replace` directive was left in ITD's `go.mod`. I've removed the directive and pushed the updated `drpc` library that it was referencing to git so that it's no longer required. It should be working now. If you're going to install `itgui` from LURE, you should probably also install ITD from there instead of the release, at least for now, because the socket protocol has changed and I haven't tagged a new release with it yet. Please let me know if there are any other issues.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lure/lure#4
No description provided.