From 158a4cd624e9c990bbab94b2f77ea98a09cdf24e Mon Sep 17 00:00:00 2001 From: Dominique Louis Date: Thu, 6 Jul 2023 17:06:11 +0100 Subject: [PATCH] Hack to fix list ports on linux (#321) * Fix parsing on Linux. Needs a better solution, but this will do for now. * Fix nuget publishing path, by removing wildcards. --- .github/workflows/dotnet.yml | 2 +- Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1e57c5d8..cf901f5f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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 diff --git a/Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs b/Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs index 029b6497..8f2c0f71 100644 --- a/Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs +++ b/Meadow.CLI.Core/DeviceManagement/MeadowDeviceManager.cs @@ -302,8 +302,8 @@ public async static Task> 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();