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

Update to Misskey v13, NodeJS 18.13.0, remove Yarn, add pnpm #145

Open
wants to merge 49 commits into
base: testing
Choose a base branch
from

Conversation

oufmilo
Copy link
Contributor

@oufmilo oufmilo commented Jan 26, 2023

Update NodeJS 18.13.0 + Remove Yarn + Add pnpm

Problem

I can't upgrade from current version since i've changed the install script due to pnpm.
And it doesn't recognize git

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

@oufmilo
Copy link
Contributor Author

oufmilo commented Jan 26, 2023

Test Badge

@oufmilo
Copy link
Contributor Author

oufmilo commented Jan 26, 2023

!testme

@yunohost-bot
Copy link
Contributor

Fingers crossed!
Test Badge

@Lastorder-DC
Copy link

git submodule update --init should be added to fetch fluent-emojis and missky assets

@oufmilo
Copy link
Contributor Author

oufmilo commented Jan 28, 2023

!testme

@yunohost-bot
Copy link
Contributor

May the CI gods be with you!
Test Badge

@oufmilo
Copy link
Contributor Author

oufmilo commented Jan 28, 2023

Test Badge

@lapineige
Copy link
Member

git submodule update --init should be added to fetch fluent-emojis and missky assets

Is there any way to do that without relying on git to download the release ? Because if I understand correctly this won't allow us to set a fixed version (and sha256sum it properly) ?

@oufmilo
Copy link
Contributor Author

oufmilo commented Jan 29, 2023

I'm waiting a reviewer to see if I'm on the good way 🤞

@lapineige
Copy link
Member

ping @YunoHost-Apps/apps-group then ?

@oufmilo oufmilo changed the title Update v13.2.2 + NodeJS 18.13.0 + Remove Yarn + Add pnpm Update NodeJS 18.13.0 + Remove Yarn + Add pnpm Feb 5, 2023
@oufmilo
Copy link
Contributor Author

oufmilo commented Feb 5, 2023

!testme

@yunohost-bot
Copy link
Contributor

🌻
Test Badge

@yunohost-bot
Copy link
Contributor

✌️
Test Badge

@oufmilo oufmilo requested a review from yalh76 February 5, 2023 18:39
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
git clone https://github.com/misskey-dev/misskey.git "$final_path" --quiet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on why you're switching to git clone x_x

This yield like a new shitload of issue and creates heterogenous practices instead of sticking to ynh_setup_source ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of this:

git submodule update --init should be added to fetch fluent-emojis and missky assets

Suggested by @Lastorder-DC.

I'm still wondering if there is another way around, because as you said this will create a lot of extra work.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One way is fork misskey and instead of submodule, add all files to repo(like before)
Someone should maintain fork, but when updating testing branch maintainer can update fork and apply

Copy link
Member

@lapineige lapineige Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But those file aren't stored anywhere ? No way to just download them ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

Copy link
Member

@lapineige lapineige Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or generated ?

I don't get it, those files are coming from somewhere, why can't we retrieve them ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be fetched from repo

https://github.com/misskey-dev/emojis/tree/cae981eb4c5189ea9ea3230e83b876a5068df7d1
https://github.com/misskey-dev/assets/tree/0179793ec891856d6f37a3be16ba4c22f67a81b5

so maybe, we can download zip instead and place to proper folder to remove git clone / submodule init stuff.(I'm not expert to git stuff so correct me If I'm wrong)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great ! Then we found another way, thanks :)

Now we just need to download those 2 folders https://github.com/misskey-dev/emojis/tree/cae981eb4c5189ea9ea3230e83b876a5068df7d1/dist & https://github.com/misskey-dev/assets/tree/0179793ec891856d6f37a3be16ba4c22f67a81b5/live2d/ai and place them where they are supposed to be - where is it ? 😅

@oufmilo do you think you could try to revert to the classic Yunohost install process and then download those files ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to misskey root folder
misskey-dev/emojis -> fluent-emojis
misskey-dev/assets-> misskey-assets

whole repo should be put there so there will be files like misskey-assets/live2d/ai/~~~

@ericgaspar
Copy link
Member

!testme

@yunohost-bot
Copy link
Contributor

🌻
Test Badge

@lapineige
Copy link
Member

Maybe the title has to be edited to state that this include v13 ?

@tituspijean tituspijean changed the title Update NodeJS 18.13.0 + Remove Yarn + Add pnpm Update to Misskey v13, NodeJS 18.13.0, remove Yarn, add pnpm Jun 20, 2023
@tituspijean
Copy link
Member

!testme

@yunohost-bot
Copy link
Contributor

May the CI gods be with you!
Test Badge

@yalh76 yalh76 removed their request for review August 28, 2023 20:54
@tituspijean
Copy link
Member

tituspijean commented Sep 11, 2023

@oufmilo, cf. review above, what do you think about the proposal to switch back to zip files instead of git? The submodules could easily be updated if we switch to packaging v2.

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.

8 participants