Use +git version when starting service from Makefile#94
Conversation
|
Also, here's the result from testing this PR |
|
What if I don't run it from server addons? Which is most of devs and testers (#94 (comment)). |
Fair enough.... so. would it make sense to you to have this as a different target? I actually run +git version of the addon quite often |
|
I would say that most of devs and testers would welcome service tools, similar to ftrack's and shotgrid's. They're used to run services out of docker. https://github.com/ynput/ayon-ftrack/tree/develop/service_tools |
|
I was exploring addon development when cloning them to it's worth mentioning that the processor service doesn't work without setting these environment variables, I added these to the top of the |
|
I think using an environment varibale like the one we are using in docker file can be helpful this one works nicely on my side for both running kitsu addon either inside or outside of if ($env:AYON_USE_GIT_SUFFIX_FOR_ADDONS) {
$env:AYON_ADDON_VERSION = Invoke-Expression -Command "python -c ""import os;import sys;content={};f=open(r'$($script_dir)/../../package.py');exec(f.read(),content);f.close();print(content['version'].split('-')[0].split('+')[0] + '+git')"""
}
else {
$env:AYON_ADDON_VERSION = Invoke-Expression -Command "python -c ""import os;import sys;content={};f=open(r'$($script_dir)/../../package.py');exec(f.read(),content);f.close();print(content['version'])"""
} |
|
Here's an alternative solution. |
|
@martastain can you loop back as to why this may be relevant to merge (your PR lacks a description to start with) and otherwise see whether @MustafaJafar 's alternative proposal #114 makes sufficient sense to close on or the other PR - and perhaps get to merging one of the two if it's still relevant. |


No description provided.