Skip to content

Commit 920dabb

Browse files
authored
Set Cloudsmith query to strict target name (#62)
1 parent ec8d408 commit 920dabb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nanoFirmwareFlasher/FirmwarePackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
8282
var repoName = _preview ? _refTargetsDevRepo : _refTargetsStableRepo;
8383
// get the firmware version if it is defined
8484
var fwVersion = string.IsNullOrEmpty(_fwVersion) ? "latest" : _fwVersion;
85-
string requestUri = $"{_cloudsmithPackages}/{repoName}/?page=1&query={_targetName} {fwVersion}";
85+
string requestUri = $"{_cloudsmithPackages}/{repoName}/?page=1&query=^{_targetName}$ {fwVersion}";
8686

8787
string downloadUrl = string.Empty;
8888

@@ -182,7 +182,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
182182

183183
// try with community targets
184184

185-
requestUri = $"{_cloudsmithPackages}/{_communityTargetsRepo}/?page=1&query={_targetName} {fwVersion}";
185+
requestUri = $"{_cloudsmithPackages}/{_communityTargetsRepo}/?page=1&query=^{_targetName}$ {fwVersion}";
186186

187187
response = await _cloudsmithClient.GetAsync(requestUri);
188188

0 commit comments

Comments
 (0)