PowerShell / PowerShell/PSResourceGet

There is no way to add PSSCriptInfo block into existing script

Open
#1,833 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-InfoFile feature_request
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Summary of the new feature / enhancement

New-PSScriptFileInfo overwrites script contents, if there is any.
Update-PSScriptFileInfo refuses to do anything if PSSCriptInfo block is missing or doesn't contain Version, GUID and Author properties

Proposed technical implementation details (optional)

There should be a way to add PSSCriptInfo block to existing scripts, other than copying it from another script.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the existing New-PSScriptFileInfo and Update-PSScriptFileInfo behavior described in the issue. The work is complete when an existing script without a PSScriptInfo block can receive one without overwriting its contents, while preserving the required metadata behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.