Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3357

Make linting more repeatable

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      https://github.com/mongodb/mongo-go-driver/pull/1823 highlights the need to keep the version used in pre-commit in sync with the one used in the Taskfile. Additionally, we are subject to whichever version of go the user has installed. We should unify the two, and enforce a consistent version of Go.

      Definition of done

      Make a new script that uses a consistent version of go and golangci-lint that is run from both pre-commit and the Taskfile task.

      Pitfalls

      None

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: