Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4560c17

Browse files
authored
Update package versions to latest in nuget feed (#77)
* Update package versions to latest in nuget feed * Remove transitive dependencies
1 parent 657c17b commit 4560c17

File tree

6 files changed

+3
-14
lines changed

6 files changed

+3
-14
lines changed

.github/workflows/build-cli.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
MS_NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json
12-
MSGRAPH_NUGET_URL: https://nuget.pkg.github.com/microsoftgraph/index.json
1312
steps:
1413
- name: Checkout
1514
uses: actions/checkout@v3
@@ -23,7 +22,6 @@ jobs:
2322
# NOTE: Password encryption is not supported for the linux platform (Encryption is only supported on Windows platforms.)
2423
run: |
2524
dotnet nuget add source ${{env.MS_NUGET_URL}} -n ms-gh -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}} --store-password-in-clear-text
26-
dotnet nuget add source ${{env.MSGRAPH_NUGET_URL}} -n msgraph-gh -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}} --store-password-in-clear-text
2725
- uses: actions/cache@v3
2826
with:
2927
path: ~/.nuget/packages

.github/workflows/release-cli.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
rid: ['win-x64', 'osx-x64', 'linux-x64']
1717
env:
1818
MS_NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json
19-
MSGRAPH_NUGET_URL: https://nuget.pkg.github.com/microsoftgraph/index.json
2019
PACKAGE_VERSION: ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
2120
PACKAGE_ZIP_TEMPLATE: "msgraph-cli-{0}-{1}.zip"
2221
OUTPUT_DIR: /tmp/publish
@@ -38,7 +37,6 @@ jobs:
3837
# NOTE: Password encryption is not supported for the linux platform (Encryption is only supported on Windows platforms.)
3938
run: |
4039
dotnet nuget add source ${{env.MS_NUGET_URL}} -n ms-gh -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}} --store-password-in-clear-text
41-
dotnet nuget add source ${{env.MSGRAPH_NUGET_URL}} -n msgraph-gh -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}} --store-password-in-clear-text
4240
- uses: actions/cache@v3
4341
with:
4442
path: ~/.nuget/packages

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
77

88
ARG MS_NUGET_URL=https://nuget.pkg.github.com/microsoft/index.json
9-
ARG MSGRAPH_NUGET_URL=https://nuget.pkg.github.com/microsoftgraph/index.json
109

1110
WORKDIR /app
1211

@@ -15,8 +14,7 @@ COPY ./msgraph-cli-core ./msgraph-cli/msgraph-cli-core
1514
WORKDIR /app/msgraph-cli
1615

1716
RUN --mount=type=secret,id=user,required=true --mount=type=secret,id=token,required=true \
18-
dotnet nuget add source ${MS_NUGET_URL} -n ms-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text &&\
19-
dotnet nuget add source ${MSGRAPH_NUGET_URL} -n msgraph-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text
17+
dotnet nuget add source ${MS_NUGET_URL} -n ms-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text
2018

2119
RUN dotnet publish -p:PublishSingleFile=false -p:PublishReadyToRun=true -p:PublishReadyToRunShowWarnings=true ./src/msgraph-cli.csproj --configuration Release --no-self-contained --runtime linux-musl-x64 --output /app/output
2220

docker/init.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
set -e
44

5-
script="$0"
6-
DIR="$(dirname $script)"
7-
85
capabilities=$(capsh --print | grep -e "Current: .*ipc_lock" | sed s/\n// | sed s/\ //)
96
ipc_error="IPC_LOCK capability is not enabled. If you are running a docker container, add the capability using the '--cap-add' option."
107

src/msgraph-cli.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
2828
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
2929
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
30-
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.0.8" />
31-
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.0.22" />
32-
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.0.15" />
30+
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.0.0-preview.1" />
3331
<PackageReference Include="System.CommandLine.Hosting" Version="0.4.0-alpha.22114.1" />
3432
</ItemGroup>
3533

0 commit comments

Comments
 (0)