Skip to content

Stop hard-coding dependency versions throughout the code base #14154

Open

Description

@kevinushey

The recent update to OpenSSL 3.1.4 was a bit rocky due to the number of places where we hard-code paths to our versioned dependencies. For example:

$ rg -F -- "openssl-3.1.4"
dependencies/windows/install-dependencies.cmd
34:set OPENSSL_FILES=openssl-3.1.4.zip

dependencies/windows/install-openssl/install-openssl.R
7:URL <- "https://www.openssl.org/source/openssl-3.1.4.tar.gz"

src/node/desktop/binding.gyp
56:                      "../../../dependencies/windows/openssl-3.1.4/openssl-3.1.4-release-64/lib", #
57:                      "c:/rstudio-tools/dependencies/windows/openssl-3.1.4/openssl-3.1.4-release-64/lib", # build location
62:                    "<(rstudio_dep_root)/openssl-3.1.4/openssl-3.1.4-release-64/include", # dev location
63:                    "c:/rstudio-tools/dependencies/windows/openssl-3.1.4/openssl-3.1.4-release-64/include", # build location for openssl

src/cpp/CMakeLists.txt
583:     set(OPENSSL_NAME "openssl-3.1.4")

We should consider whether we could improve this -- for example, by declaring our dependency versions in a single "source of truth", and have any parts of the code base which need to derive that version do so via that source of truth.

Activity

  1. added
    new
    on Jan 23, 2024
  2. added this to the Tech Debt milestone on Jan 23, 2024
  3. added
    tech debt
    and removed
    new
    on Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech debt

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions