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

Unable to push or create package version with static resource containing file where filename starts with . #2666

Closed
coolbulevar opened this issue Jan 25, 2024 · 7 comments
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated

Comments

@coolbulevar
Copy link

coolbulevar commented Jan 25, 2024

Summary

Files with name starting with . ignored by sf project deploy and sf package version create commands.

It seems the issue is not related to general issues with node 18.16.0 #2125 and as suggested by @mshanemc opening new issue.

Steps To Reproduce

Repository that's configured to reproduce the issue.
cli-zip-static-issue

  • create default scratch
  • push code with sf project deploy start

Expected result

normalFile.xml and .specialFile are being pushed successfully.

Actual result

only normalFile.xml is pushed and present in static resource.

System Information

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.25.7",
  "nodeVersion": "node-v20.9.0",
  "osVersion": "Linux 5.15.0-91-generic",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.5 (core)",
    "@oclif/plugin-commands 3.1.1 (core)",
    "@oclif/plugin-help 6.0.12 (core)",
    "@oclif/plugin-not-found 3.0.9 (core)",
    "@oclif/plugin-plugins 4.1.17 (core)",
    "@oclif/plugin-search 1.0.12 (core)",
    "@oclif/plugin-update 4.1.8 (core)",
    "@oclif/plugin-version 2.0.11 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.9 (core)",
    "@oclif/plugin-which 3.0.15 (core)",
    "@salesforce/analytics 1.3.19 (user)",
    "@salesforce/cli 2.25.7 (core)",
    "apex 3.0.18 (core)",
    "auth 3.3.2 (core)",
    "data 3.0.16 (core)",
    "deploy-retrieve 3.2.0 (core)",
    "dev 1.3.2 (user)",
    "info 3.0.17 (core)",
    "limits 3.1.4 (core)",
    "marketplace 1.0.16 (core)",
    "org 3.3.5 (core)",
    "packaging 2.1.1 (core)",
    "schema 3.1.0 (core)",
    "settings 2.0.17 (core)",
    "sobject 1.1.2 (core)",
    "source 3.1.5 (core)",
    "telemetry 3.1.10 (core)",
    "templates 56.0.10 (core)",
    "trust 3.3.2 (core)",
    "user 3.2.3 (core)"
  ]
}

Additional information

For the sf package version create command behavior is similar, special file is gone missing.

image

UPD
Updated to the latest version of Salesforce CLI and confirm that still seeing issue.

UPD2
As a workaround we are still using [email protected] on node-version: 16.20.0

@coolbulevar coolbulevar added the investigating We're actively investigating this issue label Jan 25, 2024
Copy link

Hello @coolbulevar 👋 None of the versions of sf you shared match the latest release.

Shared: 2.24.4
Latest: 2.25.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Jan 25, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added investigating We're actively investigating this issue validated Version information for this issue has been validated and removed more information required Issue requires more information or a response from the customer labels Jan 25, 2024
@coolbulevar
Copy link
Author

Updated to the latest version of Salesforce CLI and confirm that still seeing issue.

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.25.7",
  "nodeVersion": "node-v20.9.0",
  "osVersion": "Linux 5.15.0-91-generic",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.5 (core)",
    "@oclif/plugin-commands 3.1.1 (core)",
    "@oclif/plugin-help 6.0.12 (core)",
    "@oclif/plugin-not-found 3.0.9 (core)",
    "@oclif/plugin-plugins 4.1.17 (core)",
    "@oclif/plugin-search 1.0.12 (core)",
    "@oclif/plugin-update 4.1.8 (core)",
    "@oclif/plugin-version 2.0.11 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.9 (core)",
    "@oclif/plugin-which 3.0.15 (core)",
    "@salesforce/analytics 1.3.19 (user)",
    "@salesforce/cli 2.25.7 (core)",
    "apex 3.0.18 (core)",
    "auth 3.3.2 (core)",
    "data 3.0.16 (core)",
    "deploy-retrieve 3.2.0 (core)",
    "dev 1.3.2 (user)",
    "info 3.0.17 (core)",
    "limits 3.1.4 (core)",
    "marketplace 1.0.16 (core)",
    "org 3.3.5 (core)",
    "packaging 2.1.1 (core)",
    "schema 3.1.0 (core)",
    "settings 2.0.17 (core)",
    "sobject 1.1.2 (core)",
    "source 3.1.5 (core)",
    "telemetry 3.1.10 (core)",
    "templates 56.0.10 (core)",
    "trust 3.3.2 (core)",
    "user 3.2.3 (core)"
  ]
}

@coolbulevar coolbulevar changed the title Unable to push or create package version with static resource containing file where filename start with . Unable to push or create package version with static resource containing file where filename starts with . Jan 25, 2024
@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Jan 25, 2024
Copy link

git2gus bot commented Jan 25, 2024

This issue has been linked to a new work item: W-14892481

@mshanemc
Copy link
Contributor

Nice repro, thanks!

@mshanemc
Copy link
Contributor

OK, we have a PR open for this. We've always had **/.* in .forceignore's defaults, and that's what makes it ignore your file. If you have a forceignore, we add your file's contents to our defaults.

Therefore, if you want to not have that behavior this PR will allow you to add !**/.* to your .forceignore. I'd suggest being more selective than that (in your case, something like !**/staticresources/**/.*) just because hidden files end up all over the place.

@mshanemc mshanemc removed the investigating We're actively investigating this issue label Jan 30, 2024
@jshackell-sfdc
Copy link
Collaborator

This issue is fixed in version 2.28.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants