aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@idaemons.org>2022-07-10 18:59:37 +0900
committerGitHub <noreply@github.com>2022-07-10 12:59:37 +0300
commit00fce5a62cab56873c37629bef653bb2a1e4a4c1 (patch)
treeac7ba9bc743440107b6ed236c43367aa5669adf7 /projectile.el
parent2e4105c947610986e08980dcf1a891cf1f4303e1 (diff)
Give the project type "go" higher precedence than universal types (#1785)
It is very common for a Go based project to have a Makefile.
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/projectile.el b/projectile.el
index af0b302..324498e 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3074,10 +3074,6 @@ a manual COMMAND-TYPE command is created with
:compile "dotnet build"
:run "dotnet run"
:test "dotnet test")
-(projectile-register-project-type 'go projectile-go-project-test-function
- :compile "go build"
- :test "go test ./..."
- :test-suffix "_test")
;; File-based detection project types
;; Universal
@@ -3128,6 +3124,11 @@ a manual COMMAND-TYPE command is created with
:test #'projectile--cmake-test-command
:install #'projectile--cmake-install-command
:package "cmake --build build --target package")
+;; Go should take higher precedence than Make because Go projects often have a Makefile.
+(projectile-register-project-type 'go projectile-go-project-test-function
+ :compile "go build"
+ :test "go test ./..."
+ :test-suffix "_test")
;; PHP
(projectile-register-project-type 'php-symfony '("composer.json" "app" "src" "vendor")
:project-file "composer.json"