التحقق من إصدار معين من المكون الإضافي؟

Is there a way, inside of app.yml, to make rebuild checkout a specific version of a plugin?

I’m working on an older branch than master. When I ./launcher rebuild app it pulls the latest version of a plugin that I don’t control. The latest version of that plugin isn’t compatible with the older version of discourse. This causes the build to fail in my test environment.

Ideally, I’m thinking something like the following in app.yml with the other plugins:

- git clone https:/github.com/path/to/plugin.git?commit=ec64234359282

I’m open to alternative solutions. Just need discourse to build with that version of the plugin.

You can use standard git options for that, like the -b flag.

3 إعجابات

Unfortunately, the plugin doesn’t provide a named branch for the version I’m after. I’m trying to pull a specific revision (commit hash) from master. It doesn’t appear that -b works with commit hashes.

From the command line, I can git clone then git checkout to get what I need. Is there a ways to do that in app.yml?

Okay, @Falco 's solution worked, but I had to go about it in a round about way.

  1. I forked the original repo
  2. Cloned it locally on my dev machine
  3. Created my branch from the desired commit
    • git branch foo ec64ae8
  4. Pushed that branch to my github
    • git push -u origin foo
  5. Updated my app.yml with
    • git clone -b foo git@github.com:my-repo.git

Seems like there should be an easier way, but this gets the job done. Thanks for the direction @Falco !

4 إعجابات

نعم، أنا أختبر الإضافات الجديدة، وخاصة إضافة الدردشة، ولاحظت أنها تعطلت على موقعي وأتساءل كيف يمكنني التراجع ببساطة إلى الإصدار المثبت مسبقًا أو حتى كتابة إصدار الالتزام الذي أريده يدويًا.

أتخيل أنني أتطلع إلى رؤية هذا في لوحة تحكم الترقية، شيء مثل زر “التراجع” للترقية، ولكن في الوقت الحالي، آمل أن تكون هناك طريقة أسرع مما يبدو أنه جهد أكثر قوة قمت به لتجاوزها.

إعجاب واحد (1)