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

fix(deps): stick to @nextcloud/files v2 #5264

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

max-nextcloud
Copy link
Collaborator

📝 Summary

@nextcloud/files requires node 20 and npm 9. This dependency was introduced based on a beta version that did not have these requirements yet. Roll back to version 2 rather than updating the entire node stack.

Only difference here is that formatFileSize which we use will default to non-binary file sizes - i.e 1.024KB instead of 1KiB as this only became available with v3:

@max-nextcloud
Copy link
Collaborator Author

I'm not sure if we should do that same for stable27.

Copy link

cypress bot commented Jan 15, 2024

2 flaky tests on run #12435 ↗︎

0 150 2 0 Flakiness 2

Details:

fix(deps): stick to @nextcloud/files v2
Project: Text Commit: bf9d28cce9
Status: Passed Duration: 02:55 💡
Started: Jan 15, 2024 8:13 AM Ended: Jan 15, 2024 8:16 AM
Flakiness  cypress/e2e/sync.spec.js • 2 flaky tests

View Output

Test Artifacts
Sync > saves the actual file and document state Screenshots
Sync > saves on close Screenshots

Review all test suite changes for PR #5264 ↗︎

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the update/stable26-nextcloud-files-2 branch from d718678 to 7c53e3f Compare January 15, 2024 08:07
@max-nextcloud
Copy link
Collaborator Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@max-nextcloud
Copy link
Collaborator Author

/backport to stable27

@max-nextcloud max-nextcloud merged commit 93792c4 into stable26 Jan 15, 2024
34 checks passed
@max-nextcloud max-nextcloud deleted the update/stable26-nextcloud-files-2 branch January 15, 2024 09:32
@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

Error: Unknown error

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@max-nextcloud
Copy link
Collaborator Author

/backport 7c53e3f to stable27

@max-nextcloud max-nextcloud added this to the Nextcloud 26.0.11 milestone Jan 15, 2024
@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

Error: Unknown error

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

max-nextcloud added a commit that referenced this pull request Jan 15, 2024
* Forward ports: #5264
* Resolves: failing build in #5251

`@nextcloud/files` requires node 20 and npm 9. This dependency was introduced based on a beta version that did not have these requirements yet. Roll back to version 2 rather than updating the entire node stack.

Only difference here is that `formatFileSize` which we use will default to non-binary file sizes - i.e 1.024KB instead of 1KiB as this only became available with v3:
* https://github.com/nextcloud-libraries/nextcloud-files/pull/770/files#diff-237392127cb275fc6789cf6faec014d758950c87ccdab0329dde793d034190d8

Signed-off-by: Max <max@nextcloud.com>
juliushaertl pushed a commit that referenced this pull request Jan 15, 2024
* Forward ports: #5264
* Resolves: failing build in #5251

`@nextcloud/files` requires node 20 and npm 9. This dependency was introduced based on a beta version that did not have these requirements yet. Roll back to version 2 rather than updating the entire node stack.

Only difference here is that `formatFileSize` which we use will default to non-binary file sizes - i.e 1.024KB instead of 1KiB as this only became available with v3:
* https://github.com/nextcloud-libraries/nextcloud-files/pull/770/files#diff-237392127cb275fc6789cf6faec014d758950c87ccdab0329dde793d034190d8

Signed-off-by: Max <max@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants