Octopus Config as code failing due to file name too long

Hi All,
I am just trying to enable config as a code for one of the Octopus project and its failing with below error -

failed to stat ‘E:/OctopusDeploy/OctopusHome/test.octopus.deploy.internal.abc/Git/O5Q2KPCLUHUNXX3XNSCQS6RY5WKY7RSJ/bS4WG2LOG3VPP3LITO7ANEJHAH24PE5XX/certificate-management/www-cert-management/downloadedCerts/alb/staging-test/app.staging.pem’: The filename or extension is too long.

Hi @harsh_tech,

Thanks for reaching out to Octopus Support and sorry to hear you’ve hit this error when enabling CaC for this project.

It appears that you’ve encountered this issue when converting a project to CaC where an error is flagged if the Git Repository has long file paths. Good news is this issue has been fixed in a newer version of Octopus Server. I’m waiting for clarification on the exact version number containing this fix.

I’ll be in touch shortly and hopefully we can get you back on track with your CaC project again.

Kind regards,
Lauren

Hi @harsh_tech,

I’ve had confirmation the fix for this issue is now available in release 2022.3.4368 and newer.

I hope this helps and please feel free to reach out again if you have any issues.

Kind regards,
Lauren