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
{{ message }}
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Add SkipAutomaticTags Parameter to Publish-Module (#452)
* Reusing Tags caused using the Length property to be used like an array instead of string
* Added EnforceMaximumTagLength switch on Publish-Module to limit tags to 4000 characters
* Renamed EnforceMaximumTagLength to SkipAutomaticTags
* Keep Tags as string array and make new variable for a space separated string
Assert ("$wa".Contains('4000 characters')) "Warning messages should include 'Tag list exceeded 4000 characters and may not be accepted by some Nuget feeds.'"
801
+
} `
802
+
-Skip:$($PSVersionTable.PSVersion-lt'5.0.0')
803
+
804
+
# Purpose: Test Publish-Module cmdlet excludes functions from tags when using SkipAutomaticTags parameter
805
+
#
806
+
# Action: Create a module manifest with PrivateData\PSData hashtable, try to publish with SkipAutomaticTags parameter
807
+
#
808
+
# Expected Result: Publish operation should succeed and should not have warned about tag length
809
+
#
810
+
It PublishModuleFunctionsAsTagsWithSkipAutomaticTags {
Assert (-not"$wa".Contains('4000 characters')) "Warning messages should not include 'Tag list exceeded 4000 characters and may not be accepted by some Nuget feeds.'"
840
+
} `
841
+
-Skip:$($PSVersionTable.PSVersion-lt'5.0.0')
842
+
766
843
# Purpose: Test Publish-Module cmdlet gets the PSData properties from the module manifest file and also with Uri objects specified to the cmdlet
767
844
#
768
845
# Action: Create a module manifest with PrivateData\PSData hashtable, try to publish it with Uri objects to ProjectUri, IconUri and LicenseUri parameters
0 commit comments