aboutsummaryrefslogtreecommitdiff
path: root/env.go
AgeCommit message (Collapse)Author
2025-07-06all: replace module github.com/shuLhan/share with pakakeh.goShulhan
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-25env: fix missing exclude, deps, required-by, and missing statementsShulhan
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-09env: do not auto cleanup unused repositoriesShulhan
Previously, we remove all unused repositories from $GOPATH, which caused some important repositories that we forgot to track get removed during freeze operation. This commit remove the auto cleanup and only print the unused repositories to the screen.
2019-01-25env: install package if missing when issuing SyncAllShulhan
2018-12-14all: minimize naked return on long functionsShulhan
2018-12-14env: remove unused function to reinstall all packagesShulhan
2018-11-27env.Freeze: no need to reinstall all packages after freezingShulhan
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-29go.mod: update dependenciesShulhan
2018-09-29env: update comments on Sync, install, and GetPackageFromDBShulhan
2018-09-18env: do not scan package if its not exist on localShulhan
Previously, when freezing the package and package did not exist on local file system, we do scan the package for version and remote URL, which cause an error because the package directory did not exist. This commit fix the issue by not scanning the package if its not exist on local system.
2018-09-15env: get new package branch to prevent IsEqual to be falseShulhan
2018-09-15env: simplify conditional if-sShulhan
2018-09-15env: update package version only if current and new package both are tagShulhan
2018-09-15env: decrease debug level on scan packages functionShulhan
2018-09-15env: fix get package from database that return first match by prefixShulhan
In case two packages have the same prefix, for example "a" and "a-a", the GetPackageFromDB will always return "a" when the parameter importPath is "a-a". This commit move the package name match by prefix to second loop.
2018-09-15package: rename Fetch to FetchLatestVersionShulhan
2018-09-14env: explain why we ignore error on post syncShulhan
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-14env: do not save remote branch if it's emptyShulhan
This is to prevent remote branch name in database to become boolean value "true".
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-14env: scan package only if its not exist in local systemShulhan
This minimize freeze operations, removing unneeded fetching revision (tag/commit) and parsing remote URL.
2018-09-14env: Rename method GetPackage to GetLocalPackageShulhan
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-03env.Freeze: print finish status if err is not nilShulhan
2018-07-03[chore] env: print the status of reinstall all packagesShulhan
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-07-02[chore] env.Freeze: add newline before each new freeze outputShulhan
2018-06-06Rename "buildXxx" to "vendorXxx"Shulhan
2018-06-06Add govendor as one of vendor build modeShulhan
2018-06-06SyncAll: add empty line after fetch taskShulhan
2018-06-06SyncAll: run post sync task (build,install) on updated packagesShulhan
2018-06-05build: fix wrong variable name when appending verbose to gdm commandsShulhan
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-05Add option to disable installing dependenciesShulhan
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-05reinstallAll: run build to install dependenciesShulhan
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