Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cmake/recipes_bootstrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ find_program(CONAN_COMMAND "conan" REQUIRED
)

file(GLOB_RECURSE LOCAL_RECIPES "${CMAKE_SOURCE_DIR}/recipes/*/conanfile.py")
list(REMOVE_ITEM LOCAL_RECIPES "${CMAKE_SOURCE_DIR}/recipes/go/conanfile.py")
foreach(RECIPE ${LOCAL_RECIPES})
get_filename_component(RECIPE_DIR ${RECIPE} DIRECTORY)
execute_process(
COMMAND ${CONAN_COMMAND} export ${RECIPE_DIR}
)
endforeach()

# FIXME(ygurov): export all versions declared on recipies_bootstrap call
execute_process(
COMMAND ${CONAN_COMMAND} export "${CMAKE_SOURCE_DIR}/recipes/go" --version 1.26.0
)
execute_process(
COMMAND ${CONAN_COMMAND} export "${CMAKE_SOURCE_DIR}/recipes/go" --version 1.23.12
)

execute_process(
COMMAND ${CONAN_COMMAND} remote add amnezia "https://artifactory.amnezia.org/artifactory/api/conan/client-prebuilts" --force
)
25 changes: 25 additions & 0 deletions recipes/go/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
sources:
"1.23.12":
Macos:
x86_64:
url: "https://go.dev/dl/go1.23.12.darwin-amd64.tar.gz"
sha256: "0f6efdc3ffc6f03b230016acca0aef43c229de022d0ff401e7aa4ad4862eca8e"
armv8:
url: "https://go.dev/dl/go1.23.12.darwin-arm64.tar.gz"
sha256: "5bfa117e401ae64e7ffb960243c448b535fe007e682a13ff6c7371f4a6f0ccaa"
Linux:
x86:
url: "https://go.dev/dl/go1.23.12.linux-386.tar.gz"
sha256: "3b2fd446e26642555d1446a38ccbefb2a30bba3179d3ef132ed64d3c63b0c42a"
x86_64:
url: "https://go.dev/dl/go1.23.12.linux-amd64.tar.gz"
sha256: "d3847fef834e9db11bf64e3fb34db9c04db14e068eeb064f49af747010454f90"
armv8:
url: "https://go.dev/dl/go1.23.12.linux-arm64.tar.gz"
sha256: "52ce172f96e21da53b1ae9079808560d49b02ac86cecfa457217597f9bc28ab3"
Windows:
x86:
url: "https://go.dev/dl/go1.23.12.windows-386.zip"
sha256: "9be6415e04270cdd35761f97bcab6506feb421715dc6453dd1322c8e7bcde67a"
x86_64:
url: "https://go.dev/dl/go1.23.12.windows-amd64.zip"
sha256: "07c35866cdd864b81bb6f1cfbf25ac7f87ddc3a976ede1bf5112acbb12dfe6dc"
"1.26.0":
Macos:
x86_64:
Expand Down
5 changes: 3 additions & 2 deletions recipes/go/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

class Golang(ConanFile):
name = "go"
version = "1.26.0"

# No fixed version: openvpn-pt-android pins go/1.23.x (android/arm futex_time64
# regression in go>=1.24, golang/go#77930) — versions are exported explicitly
# in recipes_bootstrap.cmake.
settings = "os", "arch"

def layout(self):
Expand Down
2 changes: 1 addition & 1 deletion recipes/openvpn-pt-android/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def layout(self):

def build_requirements(self):
self.tool_requires("swig/4.1.1")
self.tool_requires("go/1.26.0")
self.tool_requires("go/1.23.12")
self.tool_requires("cmake/[>=3.4.1 <4]")

def validate(self):
Expand Down
Loading