Select a specific go version #2314
              
                Unanswered
              
          
                  
                    
                      adrientiburce
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| Hello! According to https://golangci-lint.run/usage/configuration/, please try  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Since
go:1.17a transition has started to remove the// +buildflag and use only//go:build.I understood that during the 1.17 version, linters
gofmtandgoimportswill add the second flag and keep the first one : as explained hereThe thing is my team uses
go1.16.5so we would like to still usegolangci-lintand thegofmtlinter locally without having every build tag being modified.So my question is : is there a way to choose a specific version when running
golangci-lint?Also I tried to disable this specific rule, but I didn't find a way of doing that neither.
Thanks for your help !
Beta Was this translation helpful? Give feedback.
All reactions