Skip to content

Commit d7b9a54

Browse files
authored
fixing sync bug (#612)
* fixing sync bug Signed-off-by: vsoch <[email protected]>
1 parent 4e57474 commit d7b9a54

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/test-container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Find changed recipes
1515
id: files
16-
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
16+
uses: jitterbit/get-changed-files@v1
1717
with:
1818
format: json
1919

@@ -64,7 +64,7 @@ jobs:
6464
cd Lmod-${PKG_VERSION}
6565
./configure --prefix=/usr/share && make && make install
6666
67-
- uses: eWaterCycle/setup-singularity@v6
67+
- uses: eWaterCycle/setup-singularity@v7
6868
if: ${{ env.keepgoing == 'true' }}
6969
name: Install Singularity
7070
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cd Lmod-${PKG_VERSION}
4141
./configure --prefix=/usr/share && make && make install
4242
43-
- uses: eWaterCycle/setup-singularity@v6
43+
- uses: eWaterCycle/setup-singularity@v7
4444
if: ${{ matrix.container_tech == 'singularity' }}
4545
name: Install Singularity
4646
with:

shpc/main/registry/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,14 @@ def _sync(
134134
# Create a remote registry with settings preference
135135
Remote = GitHub if "github.com" in sync_registry else GitLab
136136
remote = Remote(sync_registry, tag=tag)
137-
local = self.get_registry(local or self.settings.filesystem_registry)
137+
local = local or self.settings.filesystem_registry
138+
if not local:
139+
logger.exit(
140+
"sync is only supported if you have added a filesystem registry."
141+
)
142+
143+
# Get the local registry
144+
local = self.get_registry(local)
138145

139146
# We sync to our first registry - if not filesystem, no go
140147
if not local.is_filesystem_registry:

0 commit comments

Comments
 (0)