aboutsummaryrefslogtreecommitdiff
path: root/package.go
AgeCommit message (Collapse)Author
2025-07-06all: replace module github.com/shuLhan/share with pakakeh.goShulhan
2023-03-07all: prefix the error in Package Remove and gitInstallShulhan
2023-03-07go.mod: set minimum go version to 1.18 and update all dependenciesShulhan
This changes remove the "-cache" and "-testcache" options when running GoClean due to both of this options case an exit status 1 on Go 1.18.
2023-03-03all: reformat all .go files with Go 1.19 gofmtShulhan
2022-02-01all: remove the flag vendorShulhan
Since vendoring is already handled by Go module, we remove this feature to minimize duplication.
2019-12-27all: fix linter warningsShulhan
2019-06-18all: update package share from v0.6.1 to v0.7.0Shulhan
This update bring new change on how to use the ini package.
2019-06-09package: add $GOCACHE and $HOME to environments on GoInstallShulhan
The latest Go release will require $GOCACHE or $HOME environment variable upon running "go install" command.
2019-03-30all: make Go command works with Go v1.12 and laterShulhan
This means turning off GO111MODULE when running Go command.
2019-03-30package: remove unused "nolint:gas"Shulhan
2019-03-30all: suppress linter warnings on global variables and long linesShulhan
This including the copy of subpackage.
2019-03-30all: use copy of "golang.org/x/tools/go/vcs"Shulhan
The indirect dependencies of package "golang.org/x/tools/go/vcs" is overwhelming. Using "go get" on this package alone will pull up all dependency of "golang.org/x/tools". To minimize unneeded download of unneeded packages we copy the package vcs to our own repository including their license file.
2018-12-14all: minimize naked return on long functionsShulhan
2018-12-14all: rewrite switch-statement with single case to if-statementShulhan
2018-11-02Fix sync all that cause version set to truev0.5.1Shulhan
While at it, reupdate the comments section on some methods.
2018-11-01env: check if new package version is greater than current versionShulhan
2018-10-31env: fix sync "--into" commandShulhan
2018-09-15package: get remote branch if its emptyShulhan
2018-09-15package: rename Fetch to FetchLatestVersionShulhan
2018-09-14package: simplify Go install methodShulhan
Change the parameter from instance of env to string. The goal is to decouple instance of environment from package.
2018-09-14package: simplify parameter of NewPackageShulhan
2018-09-14package: remove unused Run methodShulhan
2018-09-14package: remove unneeded scan pathShulhan
2018-09-14package: print verbose go install command only when debuggingShulhan
2018-09-14package: print branch name on String methodShulhan
2018-09-14package: simplify return value on InstallShulhan
2018-09-14package: check remote branch when calling IsEqualShulhan
2018-09-14Get and save package remote branch in databaseShulhan
Some package does not have "master" branch. This will minimize parsing and filter operation to get default branch before checking out revision.
2018-09-14Add freeze methods to packageShulhan
Previously, we call package Update when doing Freeze operation, which cause confusion, because Update use parameter newPkg which may change the remote URL or version.
2018-09-14Replace local debug variable with debug packageShulhan
2018-09-13Replace git and common functions with package share/lib/{git,io}Shulhan
2018-09-11Fix sync "--into" commandShulhan
2018-09-04Remove dep as vendor toolShulhan
`dep ensure` on package in vendor, reinstall the package itself on vendor directory [1]. [1] https://github.com/golang/dep/issues/1885
2018-07-03Remove govendor vendor toolShulhan
It cannot handle transitive dependencies when building Consul [1] [1] https://github.com/kardianos/govendor/issues/348
2018-07-02Remove gdm from build handleShulhan
gdm is not vendor tool, it's using GOPATH, and will conflict with beku.
2018-06-06Rename "buildXxx" to "vendorXxx"Shulhan
2018-06-06Add govendor as one of vendor build modeShulhan
2018-06-05ScanBuild: simplify checking vendor fileShulhan
2018-06-05NewEnvironment: get or set user PATH from environmentShulhan
The PATH is used when running specific command, i.e. Run() and GoInstall().
2018-06-05Remove make from build commandShulhan
Some package use make to install dependencies and to run integration test. For example, go-redis download redis, compile, and build it.
2018-06-05Run vendoring tool and make, if dependency and make file existsShulhan
The following vendoring tool is known by beku, * dep - https://github.com/golang/dep * gmd - https://github.com/sparrc/gdm
2018-06-04Add common option "-V, --vendor" to work with vendor directoryShulhan
2018-06-04[chore] Add context to debug outputShulhan
Each debug statement is prefixed with "[X] func" where X is either ENV for debug in environment's methods or PKG for debug in package's methods.
2018-06-04NewPackage(): remove parameter vcs modeShulhan
The mode of VCS is already provided by "RepoRoot.VCS.Cmd". This changes affect on vcs mode value, from number based to string based. Previously, VCS mode git is labeled as "1", now it's labeled as VCS command "git".
2018-06-04Sync(): install missing dependenciesShulhan
2018-06-03NewPackage(): use golang tools/go/vcs to get remote URLShulhan
This will allow beku to handle custom import URL.
2018-05-30package: GoInstall: set default PATH if it's emptyShulhan
2018-05-29Add operation to exclude package from databaseShulhan
2018-05-27Run "go install" on all packages after freezing dependenciesShulhan
2018-05-27package: display command directory on debug outputShulhan