Skip to content

Commit

Permalink
Fix plugins not be loaded properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Dec 19, 2024
1 parent 2e0e4c8 commit 2abdcee
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@
},
{
/* How to debug into remote Nexus Docker container via SSH
* 1. Install SSH on container (docker exec -it <container name> bash)

* 1. Configure docker so that port 22 is exposed (e.g. to port 2222), then test the connection:
* - ssh root@<docker-host> -p 2222
*
* 2. Install SSH on container (docker exec -it <container name> bash)
* - apt update; apt install openssh-server nano curl -y
* - sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
* - service ssh start
* - password=eJW2PJvrngD6gNv3 # for testing purpose only
* - echo -e "$password\n$password" | passwd
* - curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l ~/vsdbg # https://github.com/OmniSharp/omnisharp-vscode/wiki/Attaching-to-remote-processes#installing-vsdbg-on-the-server
* - exit
*
* 2. Configure docker so that port 22 is exposed (e.g. to port 2222), then test the connection:
* - ssh root@<docker-host> -p 2222
*
* 3. Replace <docker-host> below with the actual host
*/
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v2.0.0-beta.35 - 2024-12-19
- Fixed a bug that prevented catalogs plugins to be loaded properly

## v2.0.0-beta.34 - 2024-12-18
- Fix Dockerfile

Expand Down
2 changes: 1 addition & 1 deletion src/Nexus.PackageManagement/Services/ExtensionHive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public async Task LoadPackagesAsync(

/* Currently, only the directly referenced assembly is being searched for extensions. When this
* behavior should change, it is important to think about the consequences: What should happen when
* an extension is references as usual but at the same time it serves as a base class extensions in
* an extension is referenced as usual but at the same time it serves as a base class extension in
* other packages. If all assemblies in that package are being scanned, the original extension would
* be found twice.
*/
Expand Down
8 changes: 7 additions & 1 deletion src/Nexus/Services/DatabaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,16 @@ public IEnumerable<string> EnumerateUsers()
var usersPath = Path.Combine(_pathsOptions.Config, USERS);

if (Directory.Exists(usersPath))
return Directory.EnumerateDirectories(usersPath);
{
return Directory
.EnumerateDirectories(usersPath)
.Select(x => Path.GetFileName(x));
}

else
{
return Enumerable.Empty<string>();
}
}

public bool TryReadTokenMap(string userId,
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.34"
"suffix": "beta.35"
}

0 comments on commit 2abdcee

Please sign in to comment.