Bug 263644 - sysutils/govmomi: update to 0.28.0
Summary: sysutils/govmomi: update to 0.28.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-29 03:45 UTC by Oleksandr Ignatyev
Modified: 2022-04-30 15:19 UTC (History)
3 users (show)

See Also:


Attachments
sysutils--govmomi update to 0.28.0 (1.16 KB, patch)
2022-04-29 03:45 UTC, Oleksandr Ignatyev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Ignatyev 2022-04-29 03:45:54 UTC
Created attachment 233571 [details]
sysutils--govmomi update to 0.28.0

patch with update to govmomi 0.28.0 is in attachments.
Comment 1 Oleksandr Ignatyev 2022-04-29 05:35:10 UTC
govmomi is failed to build on go 1.18.
my Golang expertise doesn't allow to fix it.

anybody can help?
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2022-04-29 13:22:29 UTC
What's the error?
Comment 3 Oleksandr Ignatyev 2022-04-29 20:33:25 UTC
It was successful on go 1.17. But, with Go 1.18 upgrade make is failing with error:

===>  Extracting for govmomi-0.28.0
=> SHA256 Checksum OK for go/sysutils_govmomi/govmomi-v0.28.0/v0.28.0.mod.
=> SHA256 Checksum OK for go/sysutils_govmomi/govmomi-v0.28.0/v0.28.0.zip.
github.com/vmware/govmomi/examples/alarms imports
        github.com/dougm/pretty: no required module provides package github.com/dougm/pretty; to add it:
        go get github.com/dougm/pretty
github.com/vmware/govmomi/govc/object imports
        github.com/a8m/tree: no required module provides package github.com/a8m/tree; to add it:
        go get github.com/a8m/tree
github.com/vmware/govmomi/toolbox imports
        github.com/rasky/go-xdr/xdr2: no required module provides package github.com/rasky/go-xdr/xdr2; to add it:
        go get github.com/rasky/go-xdr/xdr2
*** Error code 1


======== %< =========

These modules updates a long time ago.

Actually, I see several reported bugs with the same error about other Go-built ports after Go upgrade.
Comment 4 Dmitri Goutnik freebsd_committer freebsd_triage 2022-04-30 00:42:39 UTC
Builds fine for me with 1.18. Could be worth doing `make distclean` before the build.
Comment 5 Oleksandr Ignatyev 2022-04-30 07:17:05 UTC
The build is successful after 'make distclean'.
Sorry for the false alarm, have got mentioned error for another Go 1.18 and thought this is affected too.

Thank you!
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-04-30 15:17:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e770798d89f120b285c2cb398ecb2230e1a85f8f

commit e770798d89f120b285c2cb398ecb2230e1a85f8f
Author:     Aleksandr Ignatyev <alex@i.org.ua>
AuthorDate: 2022-04-30 15:13:16 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-04-30 15:13:16 +0000

    sysutils/govmomi: Update to 0.28.0

    Changes:        https://github.com/vmware/govmomi/releases/tag/v0.28.0

    PR:             263644

 sysutils/govmomi/Makefile |  3 +--
 sysutils/govmomi/distinfo | 10 +++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)
Comment 7 Dmitri Goutnik freebsd_committer freebsd_triage 2022-04-30 15:19:59 UTC
Np, thanks for the update. Looks like the Go module cache became stale, which shouldn't happen.