govendor command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
govendor: command not found
or when using sudo you get the following error message
sudo: govendor: command not found
Solutions to govendor: command not found
How To Fix govendor: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu govendor is provided by govendor package.
govendor is:
govendor is a vendoring tool that fetches, annotates, and synchronizes dependencies for the Go programming language. It can be useful as a stand-alone tool even if it is not the primary vendoring tool. Inspection sub-commands such as “govendor list” and “govendor license” can be useful to find information on dependencies and their statuses. “govendor fetch” will update or add new dependencies directly from remotes. If you choose to not check in your dependency source code, use “govendor sync” to pull the correct revision into the vendor folder.
Frustrated by not being able to run “go test ./…” anymore? Run “govendor test +local” even if you do not use govendor elsewhere. Look into the different statuses that can be assigned to packages, they are useful. Still using godep or glock? Migrate them over including manifest file using “govendor migrate”.
To fix this problem, we can install more using the command below.
sudo apt-get -y install govendor
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install govendor.
sudo apt -y install govendor
Or if you have aptitude installed you can use the following command.
sudo aptitude install govendor
Summary
In this tutorial we learn how to fix govendor command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.