Skip to content

Commit f670710

Browse files
committed
Devlink fixes
1 parent 3aa012c commit f670710

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

packages/devlink/config/devlink.php

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,31 @@
171171
],
172172

173173
// Private
174+
'connect' => [
175+
'active' => false,
176+
'path' => $private_base_path.'/connect',
177+
'repo_url' => $private_repo_url,
178+
'type' => 'private',
179+
],
174180
'creator' => [
175181
'active' => false,
176182
'path' => $private_base_path.'/creator',
177183
'repo_url' => $private_repo_url,
178184
'type' => 'private',
179185
'dev' => true,
180186
],
187+
'data' => [
188+
'active' => false,
189+
'path' => $private_base_path.'/data',
190+
'repo_url' => $private_repo_url,
191+
'type' => 'private',
192+
],
193+
'localization' => [
194+
'active' => false,
195+
'path' => $private_base_path.'/localization',
196+
'repo_url' => $private_repo_url,
197+
'type' => 'private',
198+
],
181199
'media' => [
182200
'active' => false,
183201
'path' => $private_base_path.'/media',
@@ -198,23 +216,7 @@
198216
],
199217

200218
// Local
201-
'connect' => [
202-
'active' => false,
203-
'type' => 'local',
204-
],
205-
'hecoweb' => [
206-
'active' => true,
207-
'type' => 'local',
208-
],
209-
'myheco' => [
210-
'active' => true,
211-
'type' => 'local',
212-
],
213-
'data' => [
214-
'active' => true,
215-
'type' => 'local',
216-
],
217-
'localization' => [
219+
'your-local-package' => [
218220
'active' => true,
219221
'type' => 'local',
220222
],

packages/devlink/src/Console/Traits/Link.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ private function createSymlinks(): void
3939
continue;
4040
}
4141

42+
if (($package['type'] ?? '') === 'local') {
43+
continue;
44+
}
45+
46+
if (! isset($package['path'])) {
47+
$notFoundPackages[] = "$name (no path configured)";
48+
49+
continue;
50+
}
51+
4252
$target = realpath($package['path']);
4353
if (! $target) {
4454
$target = $package['path'];

0 commit comments

Comments
 (0)