Skip to content

Commit

Permalink
Make resource locator optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Jan 23, 2025
1 parent 2544c18 commit 408399a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.0.0-beta.49 - 2025-01-23

- Make resource locator optional

## v2.0.0-beta.48 - 2025-01-23

- Fix issues in underlying package management dependency
Expand Down
2 changes: 1 addition & 1 deletion src/Nexus.Sources.Remote/Remote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task SetContextAsync(
// Resource locator
var resourceLocatorString = Context.SourceConfiguration?.GetStringValue("resourceLocator");

if (!Uri.TryCreate(resourceLocatorString, UriKind.Absolute, out var resourceLocator))
if (resourceLocatorString is not null && !Uri.TryCreate(resourceLocatorString, UriKind.Absolute, out var resourceLocator))
throw new ArgumentException("The resource locator parameter is not a valid URI.");

// Source configuration
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.0",
"suffix": "beta.48"
"suffix": "beta.49"
}

0 comments on commit 408399a

Please sign in to comment.