Skip to content

Commit 5d2aa56

Browse files
committed
Upgrade to xrdcl-pelican v1.4.-
Newer xrdcl-pelican splits pelican:// and https:// into two different plugins (the former relies on the latter); this includes corresponding changes to the plugin configuration generation.
1 parent f1fcef9 commit 5d2aa56

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

github_scripts/osx_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ninja
5454
ninja install
5555
popd
5656

57-
git clone --branch v1.2.3 https://github.com/PelicanPlatform/xrdcl-pelican.git
57+
git clone --branch v1.4.0 https://github.com/PelicanPlatform/xrdcl-pelican.git
5858
pushd xrdcl-pelican
5959
mkdir build
6060
cd build

images/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ ARG NODEJS_VER=20
5353
#
5454
ARG LOTMAN_SRC_BUILD=false
5555
ARG LOTMAN_VER=0.0.4
56-
ARG XRDCL_PELICAN_SRC_BUILD=false
57-
ARG XRDCL_PELICAN_VER=1.2.3
56+
# Note: github_scripts/osx_install.sh also (separately) specifies the version to use
57+
# Until the two places are programmatically synchronized, please double-check by hand
58+
# when doing version changes.
59+
ARG XRDCL_PELICAN_SRC_BUILD=true
60+
ARG XRDCL_PELICAN_VER=1.4.0
5861
ARG XRDHTTP_PELICAN_SRC_BUILD=false
5962
ARG XRDHTTP_PELICAN_VER=0.0.7
6063
ARG XROOTD_LOTMAN_SRC_BUILD=false

xrootd/xrootd_config.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,24 @@ const (
7272
url = pelican://*
7373
lib = libXrdClPelican.so
7474
enable = true
75+
`
76+
77+
clientHttpPluginDefault = `
78+
url = http://*;https://*
79+
lib = libXrdClCurl.so
80+
enable = true
7581
`
7682

7783
clientPluginMac = `
7884
url = pelican://*
7985
lib = libXrdClPelican.dylib
8086
enable = true
87+
`
88+
89+
clientHttpPluginMac = `
90+
url = http://*;https://*
91+
lib = libXrdClCurl.dylib
92+
enable = true
8193
`
8294
)
8395

@@ -459,8 +471,14 @@ func CheckXrootdEnv(server server_structs.XRootDServer) error {
459471
}
460472
if runtime.GOOS == "darwin" {
461473
err = os.WriteFile(filepath.Join(clientPluginsDir, "pelican-plugin.conf"), []byte(clientPluginMac), os.FileMode(0644))
474+
if err == nil {
475+
err = os.WriteFile(filepath.Join(clientPluginsDir, "http-plugin.conf"), []byte(clientHttpPluginMac), os.FileMode(0644))
476+
}
462477
} else {
463478
err = os.WriteFile(filepath.Join(clientPluginsDir, "pelican-plugin.conf"), []byte(clientPluginDefault), os.FileMode(0644))
479+
if err == nil {
480+
err = os.WriteFile(filepath.Join(clientPluginsDir, "http-plugin.conf"), []byte(clientHttpPluginDefault), os.FileMode(0644))
481+
}
464482
}
465483
if err != nil {
466484
return errors.Wrap(err, "Unable to configure cache client plugin")

0 commit comments

Comments
 (0)