-
Notifications
You must be signed in to change notification settings - Fork 93
Возможность указания каталога temp #7
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
Merged
EvilBeaver
merged 2 commits into
oscript-library:master
from
khorevaa:Возможность-указания-каталога-temp
Nov 25, 2016
The head ref may contain hidden characters: "\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C-\u0443\u043A\u0430\u0437\u0430\u043D\u0438\u044F-\u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0430-temp"
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не согласен с переустановкой свойства у глобальной переменной ВременныеФайлы.
Может повлиять на работу различных скриптов, которые могут вызывать данный код - например, тестраннер или 1бдд или еще что-нибудь
ИМХО для таких случаев нужно юзать собственный экземпляр класса ВременныеФайлы и в своем коде юзать только его.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Т.е. для этого изменения нужно во всем коде исправить вызов ВременныеФайлы, заменив на собственный объект :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvilBeaver Помнишь, как-то говорили об этом в гиттере?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хм. Согласен.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тогда другой вопрос: подключение библиотеке в скрипт не создает ее отдельный экземпляр?
Если при одновременном выполнении скриптов используются одинаковое пространство для выполнения, тогда вообще объявление любой глобальной переменной может привести к коллапсу в другом скрипте, что на мой взгляд мало вероятно. Вообще вопрос больше к движку скриптов и как он работает...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще логично.. Тогда и использование глобальной переменной будет возможно :) В общем добавлять или нет решать Вам, но это РАБОТАЕТ!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artbear гитсинк это приложение. Оно, в принципе, может переопределить свой temp. Но вопрос к @khorevaa у меня остался - что побудило менять основной темп?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvilBeaver Автор выше написал:
Вопрос - почему бы весь пользовательский темп не перенаправить в другое место в этом случае? но в целом я не против сценария автора - меняем только для конкретного сценария.
Я с решаемой задачей (смена временного каталога) согласен, сценарий имеет место быть.
Я с реализацией не очень согласен.
@EvilBeaver Если у тебя нет возражений по задаче и ее реализации, ИМХО нужно принимать.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поясню дополнительно. у меня есть терминальный сервер (1шт ) на котором гоняется gitsync в 6 экземплярах.... соответсвенно хотелось бы чтобы они складывали свой temp в отдельные папочки... В случае падения всегда можно посмотреть остаточный temp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давным-давно я имел такую же проблему, как @khorevaa . Тогда я добавил такой функционал в v83unpack (гитсинка, как и 1Скрипта, еще не существовало). Но после портирования обработки на 1Скрипт возможность установки временного каталога выпилили. Причем намерянно.
Я уже задавал вопрос про возможность указания временного каталога для гитсинка. И мне ответили, что достаточно в батнике, который вызывает gitsync вызвать
В общем меня вроде бы как устраивает.