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

[ALM Accelerator - BUG]: Solutions with long paths on unpack fail pac solution clone/sync #7207

Open
bnc-cvx opened this issue Nov 29, 2023 · 4 comments · May be fixed by microsoft/coe-alm-accelerator-templates#333
Labels
alm-accelerator ALM Accelerator Components and Apps bug Something isn't working

Comments

@bnc-cvx
Copy link

bnc-cvx commented Nov 29, 2023

Describe the issue

We have a few solution where their solution components have really long names.

Also, these same solutions are named with very long names (at or close to 50 characters long).

Every attempt at exporting these solutions via ALM Accelerator causes an error when the export pipeline tries to execute the "pac - Clone or Sync Solution"
image

Expected Behavior

Would like to be able to export solutions that might be named with long names and be able to export solutions that have components named with long names.

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

November 2023

Steps To Reproduce

  1. Create a solution with a name that's long. For example, create a solution with the name "ReallyLongSolutionNameIMeanLikeVeryVeryLon"
  2. Create a component within the solution and provide it a really long name. For example, create an environment variable with the name "ReallyLongEnvironmentVariableNameLikeAsLongAsTheyLetMeMakeItWhichIsLongerThanTheSolutionButThat"
  3. Attempt to deploy the solution via ALM Accelerator.
  4. An error similar to what's shown here will occur:
    image
    The error message usually states Error: Could not find a part of the path '...'

Anything else?

No response

AB#1622

@bnc-cvx bnc-cvx added alm-accelerator ALM Accelerator Components and Apps bug Something isn't working labels Nov 29, 2023
@RajeevPentyala RajeevPentyala self-assigned this Dec 1, 2023
@RajeevPentyala
Copy link
Contributor

RajeevPentyala commented Dec 1, 2023

@bnc-cvx It's a known Windows OS issue related to long paths, as mentioned here. Unfortunately, there isn't much that can be done about it. You may want to refer to the similar github issue #5964 and check if the workaround mentioned there works for you.

@mikefactorial
Copy link
Contributor

@bnc-cvx we're working through incorporating recent updates to the build tools and pac to help here. microsoft/coe-alm-accelerator-templates#333

@mikefactorial
Copy link
Contributor

@bnc-cvx It's a known Windows OS issue related to long paths, as mentioned here. Unfortunately, there isn't much that can be done about it. You may want to refer to the similar github issue #5964 and check if the workaround mentioned there works for you.

@RajeevPentyala added you to the internal thread on this.

@l-fronczyk
Copy link

l-fronczyk commented Dec 11, 2024

Use absolute output path prefixed with \\?\. This turns on long paths on Windows. I just tested it and it fixes this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alm-accelerator ALM Accelerator Components and Apps bug Something isn't working
Projects
Status: In Progress 🚧
Development

Successfully merging a pull request may close this issue.

4 participants