Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build packages from devcontainer #23854

Closed
5 tasks done
rzippo opened this issue May 27, 2024 · 1 comment · Fixed by #23857
Closed
5 tasks done

Cannot build packages from devcontainer #23854

rzippo opened this issue May 27, 2024 · 1 comment · Fixed by #23857
Labels
In-PR Indicates that a PR is out for the issue

Comments

@rzippo
Copy link
Contributor

rzippo commented May 27, 2024

Prerequisites

Steps to reproduce

I am using the devcontainer provided (Ubuntu 18.04) and I can't build packages because there is a hardcoded path where the repository is expected, /PowerShell, while the devcontainer mounts it on /workspaces/PowerShell.

In a fresh devcontainer, these are the commands I run to get to building a package:

root@4b9145c2e783:/workspaces/PowerShell# git config --global --add safe.directory /workspaces/PowerShell
root@4b9145c2e783:/workspaces/PowerShell# ./tools/install-powershell.sh
root@4b9145c2e783:/workspaces/PowerShell# pwsh
PS /workspaces/PowerShell> Import-Module ./build.psm1                                
PS /workspaces/PowerShell> Start-PSBootstrap
PS /workspaces/PowerShell> Start-PSBuild -Clean -PSModuleRestore -Runtime linux-x64 -Configuration Release
PS /workspaces/PowerShell> Import-Module ./tools/packaging/packaging.psm1      
PS /workspaces/PowerShell> Start-PSBootstrap -Package
PS /workspaces/PowerShell> Start-PSPackage -Version "7.4.3-preview" -Type "rpm"

The last command fails with

Exception: Please ensure your repo is at the root of the file system and named 'PowerShell' (example: '/PowerShell'), when building and packaging for release!

Expected behavior

The devcontainer environment can be used to build packages.

Actual behavior

It does not, because the repository is not mounted in the expected hardwired location.

Error details

No response

Environment data

PS /workspaces/PowerShell> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.7
PSEdition                      Core
GitCommitId                    7.2.7
OS                             Linux 6.8.10-300.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 17 21:20:54 UTC 2024
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

@rzippo rzippo added the Needs-Triage The issue is new and needs to be triaged by a work group. label May 27, 2024
Copy link
Contributor

microsoft-github-policy-service bot commented Jul 31, 2024

📣 Hey @rzippo, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@microsoft-github-policy-service microsoft-github-policy-service bot added In-PR Indicates that a PR is out for the issue and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Indicates that a PR is out for the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant