1. 03 Jan, 2021 5 commits
  2. 10 Dec, 2020 1 commit
  3. 02 Dec, 2020 1 commit
  4. 27 Oct, 2020 1 commit
  5. 26 Oct, 2020 1 commit
  6. 02 Oct, 2020 3 commits
  7. 11 Jun, 2020 1 commit
    • Jonathan A. Sternberg's avatar
      fix: hash the libraries to produce a unique file per source input (#21) · c4be9eb1
      Jonathan A. Sternberg authored
      This changes `pkg-config` to produce a unique hashed linked output and
      configures it to output a link command that includes that hash. This is
      done because Go will hash the output of `pkg-config` and it will hash
      multiple builds.
      
      For example, it is possible to use `pkg-config` on one build and get a
      valid output. Then you make a modification and use it again and get
      another valid output. If you revert back to the first build input,
      go will believe the library has already been built and won't run
      `pkg-config` again. It will link against the output from the second
      build.
      
      This is because go's invocation of `pkg-config` always assumes that
      nothing changes. By adding these hashes, go will use the first
      `pkg-config` invocation's output and link against the correct library.
      
      This mostly affects local builds because local builds are the only
      circumstance where `pkg-config` will overwrite the old file. Module and
      vendor builds aren't affected because they produce a unique directory
      output.
      c4be9eb1
  8. 08 Jun, 2020 2 commits
  9. 13 May, 2020 1 commit
  10. 25 Mar, 2020 1 commit
  11. 24 Mar, 2020 1 commit
  12. 19 Mar, 2020 2 commits
  13. 18 Mar, 2020 1 commit
  14. 17 Mar, 2020 3 commits
  15. 12 Mar, 2020 2 commits
  16. 11 Mar, 2020 2 commits
  17. 28 Feb, 2020 1 commit
    • Jonathan A. Sternberg's avatar
      fix: do not search the path for the executable if it was specified with PKG_CONFIG (#8) · ee99b960
      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.
      ee99b960
  18. 20 Feb, 2020 3 commits
  19. 19 Feb, 2020 3 commits
  20. 18 Feb, 2020 2 commits
  21. 07 Feb, 2020 2 commits
  22. 06 Feb, 2020 1 commit
    • Jonathan A. Sternberg's avatar
      feat: implement finding modules when it is a dependency · 5b9092a4
      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.
      5b9092a4