Skip to content

Commit cd31c65

Browse files
committed
added nuget source
1 parent 7efc128 commit cd31c65

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

Tools/CI/Settings/InputSystemSettings.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,27 @@ public class InputSystemSettings : AnnotatedSettingsBase
2929
// NOTE: Starting with PMDT 3.0.0, DocFX is no longer bundled with the package and must be
3030
// installed separately as a dotnet tool. See:
3131
// https://docs.unity3d.com/Packages/com.unity.package-manager-doctools@3.14/manual/installation.html
32+
//
33+
// dotnet SDK availability: confirmed present on package-ci images (Windows, Mac, and Ubuntu) via
34+
// #devs-pets / #devs-ci Slack history - it's a centrally maintained, version-pinned component of
35+
// the image family (e.g. package-ci/ubuntu-22.04:v4 SDK version pinning discussion, and a Windows
36+
// package-ci job observed spawning a .NET 8 subprocess), not something jobs install themselves.
37+
// So no extra .NET SDK install step is needed here.
38+
//
39+
// NuGet source reachability - `dotnet tool install` needs to resolve the docfx package from a feed.
40+
// There's no nuget.config at the repo root (only Tools/CI/nuget.config, which NuGet won't discover
41+
// from here since it only walks upward from the working directory), so we pin --add-source
42+
// explicitly below to Unity's internal Artifactory NuGet proxy - the same source Tools/CI/nuget.config
43+
// uses, and one we know CI agents can already reach since the recipe-regeneration job restores
44+
// packages through it. Default sources (nuget.org) are likely unreachable from these locked-down
45+
// build agents. Still worth confirming on the first real CI run that Artifactory actually mirrors
46+
// the "docfx" package specifically (vs. only packages requested before).
3247
public static readonly string DocfxVersion = "2.70.0";
48+
public static readonly string NugetInternalSource = "https://artifactory.prd.it.unity3d.com/artifactory/api/nuget/v3/nuget";
3349

3450
// Installs the DocFX version PMDT 3.x expects, as a dotnet tool, per-platform.
35-
public static readonly string DocfxInstallCmdWindows = $"dotnet tool install docfx --version {DocfxVersion} --tool-path %USERPROFILE%/.pmdt";
36-
public static readonly string DocfxInstallCmdUnix = $"dotnet tool install docfx --version {DocfxVersion} --tool-path $HOME/.pmdt";
51+
public static readonly string DocfxInstallCmdWindows = $"dotnet tool install docfx --version {DocfxVersion} --tool-path %USERPROFILE%/.pmdt --add-source {NugetInternalSource}";
52+
public static readonly string DocfxInstallCmdUnix = $"dotnet tool install docfx --version {DocfxVersion} --tool-path $HOME/.pmdt --add-source {NugetInternalSource}";
3753

3854
public static readonly string DoctoolsInstallCmd = "git clone --branch \"3.14.8-preview\" git@github.cds.internal.unity3d.com:unity/com.unity.package-manager-doctools.git Packages/com.unity.package-manager-doctools";
3955

0 commit comments

Comments
 (0)