- 19 Mar, 2020 2 commits
-
-
Jonathan A. Sternberg authored
When we print the environment when overwriting the environment, we risk printing any sensitive information that was held inside of environment variables. Now that we have determined that this code works, the log message should be removed to avoid leaking credentials.
-
Jonathan A. Sternberg authored
-
- 18 Mar, 2020 1 commit
-
-
Paul Hummer authored
This patch fixes a copy-n-paste issue that slipped through pairing and code review. Co-authored-by:
Paul Hummer <phummer@influxdata.com>
-
- 17 Mar, 2020 3 commits
-
-
Jonathan A. Sternberg authored
This will add a `v6` or `v7` to the end of the arm architecture if the architecture is `arm`.
-
Paul Hummer authored
feat: add all supported targets to cargo call
-
Paul Hummer authored
This patch adds support for all the flux supported targets.
-
- 12 Mar, 2020 2 commits
-
-
Paul Hummer authored
fix: remove compiler environment variable when cross compiling
-
Jonathan A. Sternberg authored
The CC environment variable, along with potentially `AR` and `CXX`, seems to interfere with the musl compilation toolchain when cross compiling. Because of this, we remove these environment variables when running cargo.
-
- 11 Mar, 2020 2 commits
-
-
Paul Hummer authored
feat: add support for static builds
-
Paul Hummer authored
This patch adds support for static builds using the musl library.
-
- 28 Feb, 2020 1 commit
-
-
Jonathan A. Sternberg authored
If the application was specified with `pkg-config`, it would still look on the path for itself and would remove the real `pkg-config`. This fixes it so it recognizes that `PKG_CONFIG` was set and will unset that environment variable instead of modifying the path. If it was wrong and `PKG_CONFIG` was not used to invoke it, this just causes it to call itself once rather than infinitely. This also modifies `pkg-config` to use the `CARGO` environment variable to find `cargo` for the flux build. This makes it easier to configure for an IDE that doesn't have cargo on the normal path.
-
- 20 Feb, 2020 3 commits
-
-
Christopher M. Wolff authored
-
Christopher Wolff authored
-
Jonathan A. Sternberg authored
The `pkg-config` executable made the erroneous assumption it would be called within the directory of the project that was invoking it rather than inside of the package that was using it. The `pkg-config` executable can now recognize when it is called from within the module cache and it can find the version by using the directory filepath instead of relying on git for those situations. It also is now able to recognize when it is within a vendor directory. After it finds the module root, it looks to see if there is another module root in the path with a vendor directory. If there is, it will use the original project instead of the vendored directory and it will proceed with the `go mod download` workflow.
-
- 19 Feb, 2020 3 commits
-
-
Jonathan A. Sternberg authored
This extends the existing log mechanism to print the output when a failure occurs.
-
Jonathan A. Sternberg authored
This will compute the arg0 path by looking at the first entry in the path where the executable can be found. This is the proper way to find the real path of the executable.
-
Jonathan A. Sternberg authored
-
- 18 Feb, 2020 2 commits
-
-
Jonathan A. Sternberg authored
Downloading the flux module should always reference the `github.com/influxdata/flux` module even when a replace says to put it somewhere else. `go mod download` will follow the replace so doing that ourselves results in an error when a module is in another repository when using replace.
-
Jonathan A. Sternberg authored
If `pkg-config` was installed in multiple places on the path, it would be possible for one of those `pkg-config` executables to invoke the other, then for that one to invoke the original, in an infinite loop. So the path resolution has now been modified to find the current executable on the path and, if present, it will remove all entries before it. This way, it avoids triggering an infinite loop.
-
- 07 Feb, 2020 2 commits
-
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
-
- 06 Feb, 2020 7 commits
-
-
Jonathan A. Sternberg authored
This implements finding the flux module when it is not the main module. When a replace is used with a file path, `pkg-config` will compile it the same as if it were the main module. This also implements downloading the module to the module cache to perform the build there. This build will fail though because the directory is read only.
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
-
Jonathan A. Sternberg authored
Basic utility that can be used as a `pkg-config` insert for Go. It is intended to build libraries when needed, but will proxy libraries it is not aware of to `pkg-config` and the system.
-