Skip to content

Commit

Permalink
Use public CFS feed and remove NuGet lockfiles (#2161)
Browse files Browse the repository at this point in the history
Partially reverts commit 5b37344.
  • Loading branch information
andyleejordan authored Apr 26, 2024
1 parent c27a92b commit ea5f3f0
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 6,349 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
version: 2
registries:
nuget-azure:
type: nuget-feed
url: https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json
username: powershell
password: ${{ secrets.AZURE_NUGET_TOKEN }}
updates:
- package-ecosystem: nuget
directory: "/"
registries:
- nuget-azure
labels: [ ]
schedule:
interval: weekly
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'
cache-dependency-path: '**/*.csproj'
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Remove Azure Artifact Feed configurations
shell: pwsh
run: Remove-Item ./NuGet.Config

- name: Install PSResources
shell: pwsh
run: ./tools/installPSResources.ps1
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'

- name: Remove Azure Artifact Feed configurations
shell: pwsh
run: Remove-Item ./NuGet.Config
cache-dependency-path: '**/*.csproj'

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/emacs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'

- name: Remove Azure Artifact Feed configurations
shell: pwsh
run: Remove-Item ./NuGet.Config
cache-dependency-path: '**/*.csproj'

- name: Install PSResources
shell: pwsh
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/vim-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'

- name: Remove Azure Artifact Feed configurations
shell: pwsh
run: Remove-Item ./NuGet.Config
cache-dependency-path: '**/*.csproj'

- name: Install PSResources
shell: pwsh
Expand Down
2 changes: 0 additions & 2 deletions PowerShellEditorServices.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/PowerShell/PowerShellEditorServices</RepositoryUrl>
<DebugType>portable</DebugType>
<!-- See https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#locking-dependencies -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
Expand Down
2 changes: 1 addition & 1 deletion NuGet.Config → nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<configuration>
<packageSources>
<clear />
<add key="PowerShellCore_PublicPackages" value="https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json" />
<add key="PowerShellCore_PublicPackages" value="https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v3/index.json" />
</packageSources>
</configuration>
Loading

0 comments on commit ea5f3f0

Please sign in to comment.