Skip to content

Commit

Permalink
Merge pull request #163 from cubicdaiya/feature-update-openssl-downlo…
Browse files Browse the repository at this point in the history
…ad-url

Update OpenSSL download URL to GitHub releases
  • Loading branch information
catatsuy authored Sep 14, 2024
2 parents 97964db + a1e35f7 commit aa11fc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func MakeBuilder(component int, version string) Builder {
case ComponentPcre:
builder.DownloadURLPrefix = fmt.Sprintf("%s/pcre2-%s", PcreDownloadURLPrefix, version)
case ComponentOpenSSL:
builder.DownloadURLPrefix = OpenSSLDownloadURLPrefix
builder.DownloadURLPrefix = fmt.Sprintf("%s/openssl-%s", OpenSSLDownloadURLPrefix, version)
case ComponentLibreSSL:
builder.DownloadURLPrefix = LibreSSLDownloadURLPrefix
case ComponentZlib:
Expand Down
2 changes: 1 addition & 1 deletion builder/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestDownloadURL(t *testing.T) {
},
{
got: builders[ComponentOpenSSL].DownloadURL(),
want: fmt.Sprintf("%s/openssl-%s.tar.gz", OpenSSLDownloadURLPrefix, OpenSSLVersion),
want: fmt.Sprintf("%s/openssl-%s/openssl-%s.tar.gz", OpenSSLDownloadURLPrefix, OpenSSLVersion, OpenSSLVersion),
},
{
got: builders[ComponentLibreSSL].DownloadURL(),
Expand Down
2 changes: 1 addition & 1 deletion builder/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
// openssl
const (
OpenSSLVersion = "3.3.1"
OpenSSLDownloadURLPrefix = "https://www.openssl.org/source"
OpenSSLDownloadURLPrefix = "https://github.com/openssl/openssl/releases/download"
)

// libressl
Expand Down

0 comments on commit aa11fc9

Please sign in to comment.