This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show completion for newly created package. (#1191)
* Refactor getNonVendorPackages to getPackages and respect the 1.9 version behavior * Inline the function test arguments building * Test all packages for Go 1.9 use "./...", the lower still remain using the same way * Fix autocomplete un-imported packages: show newly added package * Use spawn to avoid maxBuffer exceeded * Support large output by using spawn * Completions shows result instantly, no longer need to pre-call to goListAll() * Fix lint warning * Expect proper gopkgs binary * Change the gopkgs package * Use spawn instead of execFile to support large output * Use gopkgs from http://github.com/uudashr/gopkgs * Update the go tools in .travis.yml * Fix the gopkgs missing tools detection * Cache the gopkgs tool invocation result * Refresh gopkgs cache * Drop the cache for gopkgs since it already fast enough * Adapt with the changes of gopkgs by using -format * trigger travis build: use array desctructuring assignment * Install libsecret-1-0 * Fix the travis script * Fix the travis script, install libsecret-1-0 * Use sudo apt-get install * apt-get should buy some time * Add go 1.9.x to the .travis.yml * Prompt for missing tools when "gopkgs" not found * Update the comment of goListAll * Revert back the function name "goPackages" to "goNonVendorPackages" * Rename "goListAll" to "getAllPackages" * Use existing getImportablePackages * Missing tool prompt will be handled by function caller * Remove unused import * Handle missing tool when browsing package * Use cache if still used for less than 5s * Ignore the stderr to avoid stuck * Fix lint warning * Prompt to update gopkgs if using old pkgs * Cleanup * Fix tests * Sort pkgs before testing
- Loading branch information
1 parent
d07eb35
commit e5aa763
Showing
9 changed files
with
118 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.