Skip to content

Commit

Permalink
Add ways to prevent remote imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrech committed Feb 26, 2024
1 parent 5326eec commit 1c7e638
Show file tree
Hide file tree
Showing 65 changed files with 233 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/generate-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
'pyrech:hello-example',
'pyrech:foobar',
];
$optionFilterList = array_flip(['help', 'quiet', 'verbose', 'version', 'ansi', 'no-ansi', 'no-interaction', 'context']);
$optionFilterList = array_flip(['help', 'quiet', 'verbose', 'version', 'ansi', 'no-ansi', 'no-interaction', 'context', 'no-remote']);
foreach ($applicationDescription['commands'] as $task) {
if (in_array($task['name'], $taskFilterList, true)) {
continue;
Expand Down Expand Up @@ -135,6 +135,7 @@ function add_test(array $args, string $class, ?string $cwd = null)
env: [
'COLUMNS' => 120,
'ENDPOINT' => $_SERVER['ENDPOINT'],
'CASTOR_NO_REMOTE' => 1,
],
timeout: null,
);
Expand Down
22 changes: 22 additions & 0 deletions doc/going-further/extending-castor/remote-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,25 @@ import('package://organization/package', source: [
> Rather than using the `package://` scheme, it may be simpler to create a
> standard `composer.json` to your repository and import your newly created
> package by using the `composer://` scheme and the `vcs` argument.
## Preventing remote imports

In case you have trouble with the imported functions (or if you don't trust an
imported package, you can prevent Castor from importing and running any of them.
Just add the `--no-remote` option when calling any Castor tasks:

```bash
$ castor --no-remote my-task
```

This will trigger a warning to remind you than the remote imports are disabled.
Also, any task or configuration using an imported function will trigger an error
with Castor complaining about undefined functions.

In case you want to disable remote imports everytime, you can define the
`CASTOR_NO_REMOTE` environment variable to 1:

```bash
$ export CASTOR_NO_REMOTE=1
$ castor my-task # will not import any remote functions
```
9 changes: 9 additions & 0 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,15 @@ private function initializeApplication(InputInterface $input): TaskDescriptorCol
));
}

$this->getDefinition()->addOption(
new InputOption(
'no-remote',
null,
InputOption::VALUE_NONE,
'Skips the import of all remote remote packages.',
)
);

return new TaskDescriptorCollection($tasks, $symfonyTasks);
}

Expand Down
19 changes: 19 additions & 0 deletions src/Remote/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Castor\Remote;

use Castor\GlobalHelper;
use Castor\PathHelper;
use Castor\Remote\Exception\ComposerError;
use Castor\Remote\Exception\ImportError;
Expand All @@ -27,6 +28,10 @@ public function __construct(
*/
public function importFunctionsFrom(string $scheme, string $package, ?string $version = null, ?string $vcs = null, ?array $source = null): string
{
if (!$this->allowsRemote()) {
throw new ImportError(sprintf('Remote imports are disabled, skipping import of "%s".', $package));
}

$composer = (new ExecutableFinder())->find('composer');

if (!$composer) {
Expand Down Expand Up @@ -118,4 +123,18 @@ private function importPackageWithComposer(string $package, string $version, ?st

return PathHelper::getRoot() . Composer::VENDOR_DIR . $package;
}

private function allowsRemote(): bool
{
if ($_SERVER['CASTOR_NO_REMOTE'] ?? false) {
return false;
}

$input = GlobalHelper::getApplication()->getInput();

// Need to look for the raw options as the input is not yet parsed
$noRemote = $input->getParameterOption('--no-remote', true);

return true === $noRemote;
}
}
3 changes: 3 additions & 0 deletions tests/Examples/CdDirectoryTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
...
.../src/Attribute
...
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool! I finished!
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool, no fingerprint! Executing...
Cool! I finished!
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool! I finished!
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool, no fingerprint! Executing...
Cool! I finished!
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool! I finished!
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello Task with Fingerprint!
Cool, no fingerprint! Executing...
Cool! I finished!
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ArgsAnotherArgsTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
FIXME(required) 1
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ArgsArgsTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
array(4) {
[0]=>
string(11) "FIXME(word)"
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/BarBarTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
foo
bar
3 changes: 3 additions & 0 deletions tests/Examples/Generated/CacheComplexTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
First call: yes
Second call: no
3 changes: 3 additions & 0 deletions tests/Examples/Generated/CacheSimpleTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
SALUT
SALUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: dynamic
Production? no
verbosity: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: dynamic
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: my_default
Production? no
verbosity: 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: path
Production? yes
verbosity: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: production
Production? yes
verbosity: 1
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ContextContextRunTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: run
Production? no
verbosity: 1
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ContextContextTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: my_default
Production? no
verbosity: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
context name: dynamic
Production? no
verbosity: -1
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/EnabledInProduction.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello world!
3 changes: 3 additions & 0 deletions tests/Examples/Generated/EnvEnvTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
"toto"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello from listener! (higher priority) before task execution
Hello from listener! (lower priority)
Ola from listener! I am listening to multiple events but only showing only for BeforeExecuteTaskEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
3 changes: 3 additions & 0 deletions tests/Examples/Generated/FailureFailureTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
/tmp/foo directory exist: no
/tmp/foo is an absolute path: yes
../ is an absolute path: no
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/FilesystemFindTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Number of PHP files: 28
3 changes: 3 additions & 0 deletions tests/Examples/Generated/FooBarTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Foo bar
3 changes: 3 additions & 0 deletions tests/Examples/Generated/FooFooTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
foo
3 changes: 3 additions & 0 deletions tests/Examples/Generated/HelloTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello world!
3 changes: 3 additions & 0 deletions tests/Examples/Generated/HttpRequestTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello World!
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ListTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
completion Dump the shell completion script
hello hello
help Display help for a command
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/NoNamespaceTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
renamed
3 changes: 3 additions & 0 deletions tests/Examples/Generated/NotRenameRenamedTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
renamed
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
3 changes: 3 additions & 0 deletions tests/Examples/Generated/NotifySendNotifyTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
3 changes: 3 additions & 0 deletions tests/Examples/Generated/OutputOutputTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".

This is a title
===============
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ParallelExceptionTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
I am executed
3 changes: 3 additions & 0 deletions tests/Examples/Generated/ParallelSleepTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
sleep 0s
has slept 0s
sleep 0s
Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/QuietQuietTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
3 changes: 3 additions & 0 deletions tests/Examples/Generated/RunTestFileTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
3 changes: 3 additions & 0 deletions tests/Examples/Generated/RunVariablesTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Output:
ba'"`r

Expand Down
3 changes: 3 additions & 0 deletions tests/Examples/Generated/RunWhoamiTest.php.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Hello: whoami
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/castor-example-package-not-published".
hh:ii:ss WARNING [castor] Remote imports are disabled, skipping import of "pyrech/foobar".
Re-run with -vv, -vvv to see the output of the process.

0 comments on commit 1c7e638

Please sign in to comment.