Skip to content

Commit

Permalink
Hack to fix list ports on linux (#321)
Browse files Browse the repository at this point in the history
* Fix parsing on Linux. Needs a better solution, but this will do for now.

* Fix nuget publishing path, by removing wildcards.
  • Loading branch information
CartBlanche authored Jul 6, 2023
1 parent d6bf666 commit 158a4cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
name: Publish Meadow.CLI Nuget publically
run: |
nuget push main\**\Meadow.CLI\bin\Release\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
nuget push main\Meadow.CLI\bin\Release\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
build-vswin-2019:
runs-on: windows-2019
Expand Down
4 changes: 2 additions & 2 deletions Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ public async static Task<IList<string>> GetMeadowSerialPortsForLinux(ILogger? lo
line =>
{
var parts = line.Split(' ');
var source = parts[8];
var target = parts[10];
var source = parts[9];
var target = parts[11];
var port = Path.GetFullPath(Path.Combine(devicePath, target));
return port;
}).ToArray();
Expand Down

0 comments on commit 158a4cd

Please sign in to comment.