From 89247b255f0599f580ea0992e0673af7e0e0f486 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 18 Apr 2020 10:57:33 -0700 Subject: [PATCH] version bump 4 commits vim-youcompleteme-git --- vim-youcompleteme-git/.SRCINFO | 6 ++--- vim-youcompleteme-git/PKGBUILD | 41 +++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/vim-youcompleteme-git/.SRCINFO b/vim-youcompleteme-git/.SRCINFO index b8a18c8..1a8d765 100644 --- a/vim-youcompleteme-git/.SRCINFO +++ b/vim-youcompleteme-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = vim-youcompleteme-git pkgdesc = A code-completion engine for Vim - pkgver = r2659.7080933e + pkgver = r2663.f84dd1fb pkgrel = 1 url = https://github.com/Valloric/YouCompleteMe install = install @@ -11,7 +11,7 @@ pkgbase = vim-youcompleteme-git makedepends = git makedepends = make makedepends = curl - makedepends = go + makedepends = gopls makedepends = npm depends = boost depends = boost-libs @@ -42,8 +42,6 @@ pkgbase = vim-youcompleteme-git source = git+https://github.com/gorakhargosh/watchdog source = git+https://github.com/gorakhargosh/pathtools source = git+https://github.com/mitsuhiko/flask-sphinx-themes.git - source = git+https://github.com/golang/tools.git - sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP diff --git a/vim-youcompleteme-git/PKGBUILD b/vim-youcompleteme-git/PKGBUILD index 3301b2d..896cb7a 100644 --- a/vim-youcompleteme-git/PKGBUILD +++ b/vim-youcompleteme-git/PKGBUILD @@ -20,7 +20,8 @@ # Build Options # #=========================================================================================================# # _omnisharp="y" # OmniSharpServer deleted -_gocode="y" +_gocode="n" +_use_system_gocode="y" _rust="y" _tern="y" _typescript="y" @@ -45,7 +46,7 @@ _neovim="$NEOVIM_YOUCOMPLETEME" # Default PKGBUILD Configuration # #=========================================================================================================# pkgname=vim-youcompleteme-git -pkgver=r2659.7080933e +pkgver=r2663.f84dd1fb pkgver() { cd "YouCompleteMe" || exit printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -99,12 +100,13 @@ if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then fi if [[ "$_gocode" == "y" ]];then - # ycmd - source+=('git+https://github.com/golang/tools.git') - sha256sums+=('SKIP') makedepends+=('go') fi +if [[ "$_use_system_gocode" == "y" ]];then + makedepends+=('gopls') +fi + if [[ "$_rust" == "y" ]];then # ycmd depends+=('rustup') @@ -228,10 +230,6 @@ prepare() { local ycmdPathtools_themes=("flask-sphinx-themes") gitprepare "YouCompleteMe/third_party/ycmd/third_party/watchdog_deps" "pathtools/docs/source" "${ycmdPathtools_themes[@]}" - if [[ "$_gocode" == "y" ]]; then - gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x" "" "tools" - fi - if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then mkdir -p "$srcdir/omnisharp-roslyn" @@ -272,11 +270,13 @@ build() { rustup component add rls rust-analysis rust-src fi - if [[ "$_gocode" == "y" ]]; then - # export GOPATH="$GOPATH:$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" - msg2 'Building Gocode completer...' # BuildGoCode() - cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls" || exit - go build + if [[ "$_gocode" == "y" && "$_use_system_gocode" == "n" ]]; then + mkdir -p "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" || exit + export GO111MODULE=on + export GOPATH="$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" + msg2 'Building gopls for go completion...' # BuildGoCode() + cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" || exit + go get golang.org/x/tools/gopls@v0.4.0 else msg2 'Skipping Gocode completer...' fi @@ -386,10 +386,15 @@ package() { "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/watchdog_deps/pathtools/docs/source" fi - if [[ "$_gocode" == "y" ]]; then - mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls" - cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls/gopls" \ - "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls/gopls" + if [[ "$_gocode" == "y" && "$_use_system_gocode" == "n" ]]; then + mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go" + cp -rv "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/bin" \ + "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go" + fi + + if [[ "$_use_system_gocode" == "y" ]]; then + mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/bin" + ln -s "/usr/bin/gopls" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/bin/gopls" fi if [[ "$_tern" == "y" ]]; then