This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makelib: Fix go-find-directories symlink problem
Use the current working directory and not MK_TOPLEVEL_ABS_SRCDIR when processing 'go list' output in go-find-directories. Our invocation of 'go list' in the go-find-directories function uses paths relative to the current working directory and so the output of that command will have file paths based on the current working directory. The make file variable MK_TOPLEVEL_ABS_SRCDIR is initialized with make's abspath function. The abspath function (GNU Make 4.1) will resolve symlinks. This difference in resolved and unresolved symlinks causes problems in the go-find-directories function output when building from a path that includes a symlink. Fixes 'make unit-check' errors like these when building in a directory that has a symlink in its path: stat ./_/home/runner/workspace/src/github.com/.../builds/build-rkt-none/api/v1: no such file or directory Signed-off-by: Geoff Levand <email@example.com>
- Loading branch information