Skip to content

error: e.Timeout.Milliseconds undefined #110

Closed

Description

@greenpau

When linking this library in github.com/containernetworking/plugin via vendors, I get the following error:

Building plugins 
  bandwidth
  firewall
# github.com/google/nftables/expr
vendor/github.com/google/nftables/expr/dynset.go:46:132: e.Timeout.Milliseconds undefined (type time.Duration has no field or method Milliseconds)

See also: containernetworking/plugins#518 (comment)

What is the best way of resolving this error?

Activity

  1. greenpau commented on Aug 3, 2020

    @greenpau
    ContributorAuthor

    @stapelberg , is it really necessary to be milliseconds or it could be some division or multiplication? See also https://groups.google.com/forum/#!topic/golang-nuts/pret7hjDc70

  2. stapelberg commented on Aug 4, 2020

    @stapelberg
    Collaborator

    You’re using a too old version of Go.

    Milliseconds() was added in Go 1.13, with Go 1.14 being stable and Go 1.15 being around the corner.

    The nftables package only supports the current stable version.

  3. greenpau commented on Aug 4, 2020

    @greenpau
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions