* [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION
@ 2024-10-23 19:55 xgqt
2024-10-23 19:55 ` [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI xgqt
2024-10-25 16:16 ` [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION Sam James
0 siblings, 2 replies; 4+ messages in thread
From: xgqt @ 2024-10-23 19:55 UTC (permalink / raw
To: gentoo-dev; +Cc: dotnet, Maciej Barć
From: Maciej Barć <xgqt@gentoo.org>
Speeds up "dotnet restore". Especially can be noticed when running
without network sandbox.
Suggested by vimproved on IRC - thanks!
See also: https://github.com/NuGet/Home/issues/13062
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
eclass/dotnet-pkg-base.eclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass
index 15e9ba703b..8cedde073b 100644
--- a/eclass/dotnet-pkg-base.eclass
+++ b/eclass/dotnet-pkg-base.eclass
@@ -101,6 +101,9 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export MSBUILDDISABLENODEREUSE=1
export POWERSHELL_TELEMETRY_OPTOUT=1
export POWERSHELL_UPDATECHECK=0
+# Speeds up restore. Using this is redundant with Portage manifests.
+# See also: https://github.com/NuGet/Home/issues/13062
+export DOTNET_NUGET_SIGNATURE_VERIFICATION=false
# Overwrite selected MSBuild properties ("-p:XYZ").
export UseSharedCompilation=false
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI
2024-10-23 19:55 [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION xgqt
@ 2024-10-23 19:55 ` xgqt
2024-10-25 16:16 ` Sam James
2024-10-25 16:16 ` [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION Sam James
1 sibling, 1 reply; 4+ messages in thread
From: xgqt @ 2024-10-23 19:55 UTC (permalink / raw
To: gentoo-dev; +Cc: dotnet, Maciej Barć
From: Maciej Barć <xgqt@gentoo.org>
This will replace "edotnet fsi" as used in "app-shells/pwsh" package.
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
eclass/dotnet-pkg-base.eclass | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass
index 8cedde073b..26db694f59 100644
--- a/eclass/dotnet-pkg-base.eclass
+++ b/eclass/dotnet-pkg-base.eclass
@@ -294,6 +294,18 @@ edotnet() {
edo "${DOTNET_PKG_EXECUTABLE}" "${@}"
}
+# @FUNCTION: efsi
+# @USAGE: <command> [args...]
+# @DESCRIPTION:
+# Call dotnet fsi, passing the supplied arguments.
+# FSI is the F# interpreter shipped with .NET SDK, it is useful for running F#
+# maintenance scripts.
+efsi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ edotnet fsi --nologo "${@}"
+}
+
# @FUNCTION: dotnet-pkg-base_info
# @DESCRIPTION:
# Show information about current .NET SDK that is being used.
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION
2024-10-23 19:55 [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION xgqt
2024-10-23 19:55 ` [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI xgqt
@ 2024-10-25 16:16 ` Sam James
1 sibling, 0 replies; 4+ messages in thread
From: Sam James @ 2024-10-25 16:16 UTC (permalink / raw
To: xgqt; +Cc: gentoo-dev, dotnet
xgqt@gentoo.org writes:
> From: Maciej Barć <xgqt@gentoo.org>
>
> Speeds up "dotnet restore". Especially can be noticed when running
> without network sandbox.
> Suggested by vimproved on IRC - thanks!
>
> See also: https://github.com/NuGet/Home/issues/13062
>
> Signed-off-by: Maciej Barć <xgqt@gentoo.org>
lgtm
> ---
> eclass/dotnet-pkg-base.eclass | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass
> index 15e9ba703b..8cedde073b 100644
> --- a/eclass/dotnet-pkg-base.eclass
> +++ b/eclass/dotnet-pkg-base.eclass
> @@ -101,6 +101,9 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
> export MSBUILDDISABLENODEREUSE=1
> export POWERSHELL_TELEMETRY_OPTOUT=1
> export POWERSHELL_UPDATECHECK=0
> +# Speeds up restore. Using this is redundant with Portage manifests.
> +# See also: https://github.com/NuGet/Home/issues/13062
> +export DOTNET_NUGET_SIGNATURE_VERIFICATION=false
> # Overwrite selected MSBuild properties ("-p:XYZ").
> export UseSharedCompilation=false
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI
2024-10-23 19:55 ` [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI xgqt
@ 2024-10-25 16:16 ` Sam James
0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2024-10-25 16:16 UTC (permalink / raw
To: xgqt; +Cc: gentoo-dev, dotnet
xgqt@gentoo.org writes:
> From: Maciej Barć <xgqt@gentoo.org>
>
> This will replace "edotnet fsi" as used in "app-shells/pwsh" package.
>
> Signed-off-by: Maciej Barć <xgqt@gentoo.org>
OK given people will likely forget nologo, so probably worth having.
> ---
> eclass/dotnet-pkg-base.eclass | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass
> index 8cedde073b..26db694f59 100644
> --- a/eclass/dotnet-pkg-base.eclass
> +++ b/eclass/dotnet-pkg-base.eclass
> @@ -294,6 +294,18 @@ edotnet() {
> edo "${DOTNET_PKG_EXECUTABLE}" "${@}"
> }
>
> +# @FUNCTION: efsi
> +# @USAGE: <command> [args...]
> +# @DESCRIPTION:
> +# Call dotnet fsi, passing the supplied arguments.
> +# FSI is the F# interpreter shipped with .NET SDK, it is useful for running F#
> +# maintenance scripts.
> +efsi() {
> + debug-print-function ${FUNCNAME} "$@"
> +
> + edotnet fsi --nologo "${@}"
> +}
> +
> # @FUNCTION: dotnet-pkg-base_info
> # @DESCRIPTION:
> # Show information about current .NET SDK that is being used.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-25 16:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 19:55 [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION xgqt
2024-10-23 19:55 ` [gentoo-dev] [PATCH 2/2] eclass/dotnet-pkg-base: add efsi function for running FSI xgqt
2024-10-25 16:16 ` Sam James
2024-10-25 16:16 ` [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATION Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox