-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoVetBear - skip condition invalid #49
Comments
From @AbdealiJK on February 9, 2016 5:43 The skip condition to be to check if |
From @NalinG on February 9, 2016 10:11 Hi, I would like to work on this issue. Thank You |
From @AbdealiJK on February 9, 2016 10:30 The ship condition is in GoVetBearTest -----Original Message----- Hi, I would like to work on this issue. |
@NalinG please work only on one newcomer issue, we don't have a lot of them because they take a lot of work to create. |
From @NalinG on February 9, 2016 18:41 Sorry for the trouble. |
no problem |
Hey @sils1297, I'd like to work on this issue! :) |
@AbdealiJK using I can use |
'which' doesn't work like that. It only accepts 1 arg. What were you expecting 'which go vet bear' to give??? Instead of os.system() we use sub process.check_call or subprocess.check_output. Look at other bears and how it's implemented in them. |
I realised that after posting the comment. Sure, I'll do that! |
Please see the new GoRequirement . Each bear should not do their own package management checks - they will be buggy. |
(Go vet is a bit special, but its specialness should be in GoRequirement) |
@jayvdb I'm not sure if you're pointing to any specific part of the documentation. |
@jayvdb but we need to ensure it works for the test skipping right? Or has that been offloaded to GoRequirements? |
See coala/coala#2752 , which fixed Test skipping should be done using |
@AbdealiJK @jayvdb So the condition for checking |
Ideally it'd be in GoRequirement.is_installed done properly and then the Bear class should automatically use those. CC @Makman2 and @Udayan12167 as this affects the Bear and LintBase classes |
@manu-chroma sure, if you like. Not sure what @Makman2 is planning |
From @AbdealiJK on February 9, 2016 3:20
I have ubuntu 14.04 and was trying to get all the tests in coala to work for me.
I noticed that GoVetBearTest kept failing and found out that in GoVet the skip condition is set to
go
.This is not right because that isn't the correct thing to check. I had
go
installed but notgo vet
.I had to install
golang-go.tools
to get thevet
package ingo
.Copied from original issue: coala/coala#1329
The text was updated successfully, but these errors were encountered: