Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use public CFS feed and remove NuGet lockfiles #2161

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 1 addition & 5 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions .github/workflows/emacs-test.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions .github/workflows/vim-test.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions PowerShellEditorServices.Common.props
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion NuGet.Config → nuget.config
Original file line number Diff line number Diff line change
@@ -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