You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Artifacts upstream sources allow developers to store packages from various origins in a single feed, including packages published to the feed and those installed from public registries like *NuGet.org* or *npmjs.com*. Once upstream sources are enabled, any package installed from an upstream source is automatically saved to your feed
16
+
Azure Artifacts upstream sources allow developers to store packages from various origins in a single feed, including packages published to the feed and those installed from public registries like *NuGet.org* or *npmjs.com*. Once upstream sources are enabled, any package installed from an upstream source is automatically saved to your feed.
@@ -33,7 +33,7 @@ Enabling upstream sources offers several advantages for managing your product’
33
33
34
34
To take full advantage of the benefits of upstream sources as a package consumer, follow these best practices:
35
35
36
-
#### 1. Use a single feed in your configuration file
36
+
#### Use a single feed in your configuration file
37
37
38
38
In order for your feed to provide a [deterministic restore](#search-order), make sure that your configuration file (such as *nuget.config* or *npmrc*) references **only one feed** with upstream sources enabled.
39
39
@@ -54,7 +54,7 @@ In order for your feed to provide a [deterministic restore](#search-order), make
54
54
> [!NOTE]
55
55
> NuGet compiles several [configuration files](/nuget/consume-packages/configuring-nuget-behavior) to determine the complete set of options to apply. Using `<clear />` ensures that all other package sources specified in higher-level configuration files are ignored.
56
56
57
-
#### 2. Order your upstream sources intentionally
57
+
#### Order your upstream sources intentionally
58
58
59
59
If you're using only public registries like *NuGet.org* or *npmjs.com*, the order of upstream sources doesn’t affect behavior. Requests to the feed follow the sequence outlined in the [search order](#search-order) section.
60
60
@@ -67,7 +67,7 @@ If your organization follows this practice, place the upstream source containing
67
67
68
68
To ensure your feed can be easily configured as an upstream source, follow these best practices:
69
69
70
-
#### 1. Use the default view
70
+
#### Use the default view
71
71
72
72
All newly created feeds use the `@Local` view by default. This view includes:
73
73
@@ -76,7 +76,7 @@ All newly created feeds use the `@Local` view by default. This view includes:
76
76
77
77
If you want to use other views such as a view for newly released package versions, you can promote your packages to the `@Release` view and then make that view available to your target consumers. See [Feed views](views.md) for more details.
78
78
79
-
#### 2. Construct a package graph
79
+
#### Construct a package graph
80
80
81
81
To construct a package graph, simply connect to the feed's default view and install the package you want to share. Once a package is saved to the default view, users who want to consume it will be able to resolve the package graph and install the desired version. Packages from upstream sources are displayed based on the configured view for the corresponding upstream source. See [How upstreams construct the set of available packages](package-graph.md#how-upstreams-construct-the-set-of-available-packages) for more details.
82
82
@@ -112,7 +112,9 @@ Upstream sources offer a critical safeguard for your consumers and infrastructur
112
112
113
113
## Override packages from upstream sources
114
114
115
-
When upstream sources are enabled in your feed, you **cannot publish a package version that already exists** in one of those upstream sources. For example, if the *NuGet.org* upstream is enabled, you won’t be able to publish *Newtonsoft.Json 10.0.3* to your feed, since that version is already available on *NuGet.org*. To override a package version from an upstream source:
115
+
When upstream sources are enabled in your feed, you **cannot publish a package version that already exists** in one of those upstream sources. For example, if the *NuGet.org* upstream is enabled, you won’t be able to publish *Newtonsoft.Json 10.0.3* to your feed, since that version is already available on *NuGet.org*.
116
+
117
+
To override a package version from an upstream source:
0 commit comments