[Bug 244783] Updating a port to go 1.14 has vendor version errors

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 13 05:25:38 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244783

            Bug ID: 244783
           Summary: Updating a port to go 1.14 has vendor version errors
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: hsw at bitmark.com

Ff the source repo has a go.mod file containing:

  go 1.14

There will be lots of errors because go 1.14 does more strict version checking

Sample errors:

    golang.org/x/crypto at v0.0.0-20200311171314-f7b00557c8c4: is explicitly
required in go.mod, but not marked as explicit in vendor/modules.txt
    golang.org/x/sync at v0.0.0-20190423024810-112230192c58: is explicitly
required in go.mod, but not marked as explicit in vendor/modules.txt
    golang.org/x/time at v0.0.0-20191024005414-555d28b269f0: is explicitly
required in go.mod, but not marked as explicit in vendor/modules.txt

    run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the
vendor directory
    *** Error code 1


A workaround is to add a files/patch-go.mod changing the 1.14 to 1.13 to
restore the earlier go behaviour.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list