Skip to content

Go Tutorial, Quick Setup #3721

Open
Open

Description

@amissine

What did you do? (required: The issue will be closed when not provided)

Started reading Go Tutorial, Quick Setup: 'go get' is no longer supported outside a module.

What did you expect to happen?

What happened instead?

Configuration (MUST fill this out):

Any; Tutorial needs update.

vim-go version:

vimrc you used to reproduce:

vimrc
syntax on
filetype plugin indent on

set number
set tabstop=2     " show existing tab with 2 spaces width
set shiftwidth=2  " when indenting with '>', use 2 spaces width
set expandtab     " on pressing tab, insert 2 spaces
set updatecount=0 " the writing to the swap file is not wanted
set backspace=indent,eol,start
set foldmethod=marker
set mouse-=a

" To make Vim insert a literal tab character when you press <S-Tab>:
inoremap <S-Tab> <C-V><Tab>
" Like this t2  t3 - this line holds 3 tabs

colorscheme default

" See also:
" - https://superuser.com/questions/768894/mapping-s-tab-in-vim
" - https://github.com/amix/vimrc.git
""

let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source 
endif

call plug#begin()

  Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
  Plug 'augmentcode/augment.vim'

call plug#end()

let g:augment_workspace_folders = ['/home/alik/people/didalik']
" See also:
" https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation
" https://github.com/junegunn/vim-plug?tab=readme-ov-file
" https://github.com/fatih/vim-go?tab=readme-ov-file
" https://github.com/augmentcode/augment.vim
""
alik@ko:~/project/kot$ . ~/.profile 
alik@ko:~/project/kot$ echo $GOPATH
/home/alik/.go
alik@ko:~/project/kot$ go get github.com/fatih/vim-go-tutorial
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

Vim version (first three lines from :version):

Go version (go version):

Go environment

go env Output:

gopls version

gopls version Output:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions