Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
Fix GOROOT no longer using env var as default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Oct 29, 2015
1 parent f867d0f commit 2b8cf1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
public class GoProjectEnvironment implements GoEnvironmentConstants {

public static GoRoot getEffectiveGoRoot(IProject project) {
return new GoRoot(getEffectiveValueFromEnv(GoEnvironmentPrefs.GO_ROOT, project, GOROOT));
String prefValue = GoEnvironmentPrefs.GO_ROOT.getProjectPreference().getEffectiveValue(project);
return new GoRoot(nullAsEmpty(prefValue));
}

public static GoArch getEffectiveGoArch(IProject project) {
Expand Down

0 comments on commit 2b8cf1c

Please sign in to comment.