-
Notifications
You must be signed in to change notification settings - Fork 16
Use +git version when starting service from Makefile #94
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
base: develop
Are you sure you want to change the base?
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. |
No description provided.