[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/projectile 00fce5a62c: Give the project type "go" higher p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/projectile 00fce5a62c: Give the project type "go" higher precedence than universal types (#1785) |
Date: |
Sun, 10 Jul 2022 06:59:00 -0400 (EDT) |
branch: elpa/projectile
commit 00fce5a62cab56873c37629bef653bb2a1e4a4c1
Author: Akinori MUSHA <knu@idaemons.org>
Commit: GitHub <noreply@github.com>
Give the project type "go" higher precedence than universal types (#1785)
It is very common for a Go based project to have a Makefile.
---
CHANGELOG.md | 1 +
projectile.el | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8329177a80..dd7036d320 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,7 @@
### Changes
+* [#1785](https://github.com/bbatsov/projectile/pull/1785): Give the project
type "go" higher precedence than universal types, namely "make".
* [#1447](https://github.com/bbatsov/projectile/issues/1447): Restructure the
menu.
* [#1692](https://github.com/bbatsov/projectile/issues/1692): Enable
minibuffer completions when reading shell-commands.
* Change the Grails project marker to `application.yml`.
diff --git a/projectile.el b/projectile.el
index af0b30235c..324498ef45 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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/projectile 00fce5a62c: Give the project type "go" higher precedence than universal types (#1785),
ELPA Syncer <=