Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/pkg/assets/git-pkg/gold/install.gold
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package '[email protected]' installed with prefix 'pkg1'.
==================
== package.lock
prefixes:
pkg1: http_//localhost_<[*PORT*]>/pkg/pkg1-1
pkg1: localhost_<[*PORT*]>/pkg/pkg1-1
packages:
http_//localhost_<[*PORT*]>/pkg/pkg1-1:
localhost_<[*PORT*]>/pkg/pkg1-1:
prefixes:
pkg2: http_//localhost_<[*PORT*]>/pkg/pkg2-2
url: http://localhost:<[*PORT*]>/pkg/pkg1
pkg2: localhost_<[*PORT*]>/pkg/pkg2-2
url: localhost:<[*PORT*]>/pkg/pkg1
version: 1.0.0
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg2-2:
localhost_<[*PORT*]>/pkg/pkg2-2:
prefixes:
pre: http_//localhost_<[*PORT*]>/pkg/pkg3-3
url: http://localhost:<[*PORT*]>/pkg/pkg2
pre: localhost_<[*PORT*]>/pkg/pkg3-3
url: localhost:<[*PORT*]>/pkg/pkg2
version: 2.4.2
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg3-3:
url: http://localhost:<[*PORT*]>/pkg/pkg3
localhost_<[*PORT*]>/pkg/pkg3-3:
url: localhost:<[*PORT*]>/pkg/pkg3
version: 3.1.2
hash: <[*HASH*]>
18 changes: 9 additions & 9 deletions tests/pkg/assets/git-pkg2/gold/00-install.gold
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package '[email protected]' installed with prefix 'pkg1'.
==================
== package.lock
prefixes:
pkg1: http_//localhost_<[*PORT*]>/pkg/pkg1-1
pkg1: localhost_<[*PORT*]>/pkg/pkg1-1
packages:
http_//localhost_<[*PORT*]>/pkg/pkg1-1:
localhost_<[*PORT*]>/pkg/pkg1-1:
prefixes:
pkg2: http_//localhost_<[*PORT*]>/pkg/pkg2-2
url: http://localhost:<[*PORT*]>/pkg/pkg1
pkg2: localhost_<[*PORT*]>/pkg/pkg2-2
url: localhost:<[*PORT*]>/pkg/pkg1
version: 1.0.0
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg2-2:
localhost_<[*PORT*]>/pkg/pkg2-2:
prefixes:
pre: http_//localhost_<[*PORT*]>/pkg/pkg3-3
url: http://localhost:<[*PORT*]>/pkg/pkg2
pre: localhost_<[*PORT*]>/pkg/pkg3-3
url: localhost:<[*PORT*]>/pkg/pkg2
version: 2.4.2
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg3-3:
url: http://localhost:<[*PORT*]>/pkg/pkg3
localhost_<[*PORT*]>/pkg/pkg3-3:
url: localhost:<[*PORT*]>/pkg/pkg3
version: 3.1.2
hash: <[*HASH*]>
4 changes: 2 additions & 2 deletions tests/pkg/assets/git-pkg2/gold/20-bad-pkg search.gold
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ OK
foo:
description: Description of another foo package. Different URL.
version: 0.0.1
url: http://localhost:<[*PORT*]>/pkg/foo-different-url
url: localhost:<[*PORT*]>/pkg/foo-different-url
license: MIT
hash: <[*HASH*]>

foo:
description: Description of foo. foo-desc.
version: 1.2.3
url: http://localhost:<[*PORT*]>/pkg/foo
url: localhost:<[*PORT*]>/pkg/foo
hash: <[*HASH*]>
license: MIT

Expand Down
42 changes: 21 additions & 21 deletions tests/pkg/assets/git-pkg2/gold/30-package.lock.gold
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
== package.lock
sdk: ^0.1.30
prefixes:
bar: http_//localhost_<[*PORT*]>/pkg/bar-2
foo: http_//localhost_<[*PORT*]>/pkg/foo-1
pkg1: http_//localhost_<[*PORT*]>/pkg/pkg1-1
pre1: http_//localhost_<[*PORT*]>/pkg/foo-1
pre2: http_//localhost_<[*PORT*]>/pkg/bar-2
bar: localhost_<[*PORT*]>/pkg/bar-2
foo: localhost_<[*PORT*]>/pkg/foo-1
pkg1: localhost_<[*PORT*]>/pkg/pkg1-1
pre1: localhost_<[*PORT*]>/pkg/foo-1
pre2: localhost_<[*PORT*]>/pkg/bar-2
packages:
http_//localhost_<[*PORT*]>/pkg/bar-2:
localhost_<[*PORT*]>/pkg/bar-2:
prefixes:
foo: http_//localhost_<[*PORT*]>/pkg/foo-1
sub: http_//localhost_<[*PORT*]>/pkg/sub-3
url: http://localhost:<[*PORT*]>/pkg/bar
foo: localhost_<[*PORT*]>/pkg/foo-1
sub: localhost_<[*PORT*]>/pkg/sub-3
url: localhost:<[*PORT*]>/pkg/bar
version: 2.0.1
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/foo-1:
url: http://localhost:<[*PORT*]>/pkg/foo
localhost_<[*PORT*]>/pkg/foo-1:
url: localhost:<[*PORT*]>/pkg/foo
version: 1.2.3
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg1-1:
localhost_<[*PORT*]>/pkg/pkg1-1:
prefixes:
pkg2: http_//localhost_<[*PORT*]>/pkg/pkg2-2
url: http://localhost:<[*PORT*]>/pkg/pkg1
pkg2: localhost_<[*PORT*]>/pkg/pkg2-2
url: localhost:<[*PORT*]>/pkg/pkg1
version: 1.0.0
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg2-2:
localhost_<[*PORT*]>/pkg/pkg2-2:
prefixes:
pre: http_//localhost_<[*PORT*]>/pkg/pkg3-3
url: http://localhost:<[*PORT*]>/pkg/pkg2
pre: localhost_<[*PORT*]>/pkg/pkg3-3
url: localhost:<[*PORT*]>/pkg/pkg2
version: 2.4.2
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/pkg3-3:
url: http://localhost:<[*PORT*]>/pkg/pkg3
localhost_<[*PORT*]>/pkg/pkg3-3:
url: localhost:<[*PORT*]>/pkg/pkg3
version: 3.1.2
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/sub-3:
url: http://localhost:<[*PORT*]>/pkg/sub
localhost_<[*PORT*]>/pkg/sub-3:
url: localhost:<[*PORT*]>/pkg/sub
version: 3.1.4
hash: <[*HASH*]>
2 changes: 1 addition & 1 deletion tests/pkg/assets/git-pkg2/registry2/foo/desc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: foo
description: Description of another foo package. Different URL.
version: 0.0.1
url: 'http://localhost:<[*PORT*]>/pkg/foo-different-url'
url: 'localhost:<[*PORT*]>/pkg/foo-different-url'
license: MIT
hash: 111111111
24 changes: 12 additions & 12 deletions tests/pkg/assets/install-in-package/gold/00-test.gold
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@ Package '[email protected]' installed with prefix 'bar'.
== package.lock
sdk: ^0.1.30
prefixes:
bar: http_//localhost_<[*PORT*]>/pkg/bar-2
foo: http_//localhost_<[*PORT*]>/pkg/foo-1
bar: localhost_<[*PORT*]>/pkg/bar-2
foo: localhost_<[*PORT*]>/pkg/foo-1
packages:
http_//localhost_<[*PORT*]>/pkg/bar-2:
localhost_<[*PORT*]>/pkg/bar-2:
prefixes:
foo: http_//localhost_<[*PORT*]>/pkg/foo-1
sub: http_//localhost_<[*PORT*]>/pkg/sub-3
url: http://localhost:<[*PORT*]>/pkg/bar
foo: localhost_<[*PORT*]>/pkg/foo-1
sub: localhost_<[*PORT*]>/pkg/sub-3
url: localhost:<[*PORT*]>/pkg/bar
version: 2.0.1
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/foo-1:
url: http://localhost:<[*PORT*]>/pkg/foo
localhost_<[*PORT*]>/pkg/foo-1:
url: localhost:<[*PORT*]>/pkg/foo
version: 1.2.3
hash: <[*HASH*]>
http_//localhost_<[*PORT*]>/pkg/sub-3:
url: http://localhost:<[*PORT*]>/pkg/sub
localhost_<[*PORT*]>/pkg/sub-3:
url: localhost:<[*PORT*]>/pkg/sub
version: 3.1.4
hash: <[*HASH*]>
==================
== package.yaml
dependencies:
foo:
url: http://localhost:<[*PORT*]>/pkg/foo
url: localhost:<[*PORT*]>/pkg/foo
version: ^1.2.3
bar:
url: http://localhost:<[*PORT*]>/pkg/bar
url: localhost:<[*PORT*]>/pkg/bar
version: ^2.0.1
16 changes: 8 additions & 8 deletions tests/pkg/assets/install/gold/20-fail.gold
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
exec main.toit

STDERR---
<[*WORKING-DIR*]>/package.lock:11:10: error: Package 'http://localhost:<[*PORT*]>/pkg/bar-2.0.1' not found
url: http://localhost:<[*PORT*]>/pkg/bar
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<[*WORKING-DIR*]>/package.lock:15:10: error: Package 'http://localhost:<[*PORT*]>/pkg/foo-1.2.3' not found
url: http://localhost:<[*PORT*]>/pkg/foo
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.toit:5:8: error: Package 'http_//localhost_<[*PORT*]>/pkg/foo-1' for prefix 'foo' not found
<[*WORKING-DIR*]>/package.lock:11:10: error: Package 'localhost:<[*PORT*]>/pkg/bar-2.0.1' not found
url: localhost:<[*PORT*]>/pkg/bar
^~~~~~~~~~~~~~~~~~~~~~~
<[*WORKING-DIR*]>/package.lock:15:10: error: Package 'localhost:<[*PORT*]>/pkg/foo-1.2.3' not found
url: localhost:<[*PORT*]>/pkg/foo
^~~~~~~~~~~~~~~~~~~~~~~
main.toit:5:8: error: Package 'localhost_<[*PORT*]>/pkg/foo-1' for prefix 'foo' not found
import foo
^~~
main.toit:6:8: error: Package 'http_//localhost_<[*PORT*]>/pkg/bar-2' for prefix 'bar' not found
main.toit:6:8: error: Package 'localhost_<[*PORT*]>/pkg/bar-2' for prefix 'bar' not found
import bar
^~~
main.toit:10:7: error: Unresolved identifier: 'say-hello'
Expand Down
8 changes: 4 additions & 4 deletions tests/pkg/assets/install2/gold/test.gold
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
exec main.toit

STDERR---
<[*WORKING-DIR*]>/package.lock:6:10: error: Package 'http://localhost:<[*PORT*]>/pkg/pkg1-1.0.0' not found
url: 'http://localhost:<[*PORT*]>/pkg/pkg1'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<[*WORKING-DIR*]>/package.lock:6:10: error: Package 'localhost:<[*PORT*]>/pkg/pkg1-1.0.0' not found
url: 'localhost:<[*PORT*]>/pkg/pkg1'
^~~~~~~~~~~~~~~~~~~~~~~~~~
main.toit:5:8: error: Package 'pkg1' for prefix 'pkg1' not found
import pkg1
^~~~
Expand All @@ -26,7 +26,7 @@ prefixes:

packages:
pkg1:
url: 'http://localhost:<[*PORT*]>/pkg/pkg1'
url: 'localhost:<[*PORT*]>/pkg/pkg1'
version: 1.0.0
hash: <[*HASH*]>
==================
Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/assets/install2/package.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ prefixes:

packages:
pkg1:
url: 'http://localhost:<[*PORT*]>/pkg/pkg1'
url: 'localhost:<[*PORT*]>/pkg/pkg1'
version: 1.0.0
hash: deadbeef1234567890abcdef1234567890abcdef
2 changes: 1 addition & 1 deletion tests/pkg/assets/install2/package.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
pkg1:
url: http://localhost:<[*PORT*]>/pkg/pkg1
url: localhost:<[*PORT*]>/pkg/pkg1
version: ^1.0.0
2 changes: 1 addition & 1 deletion tests/pkg/assets/missing-spec/package.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ prefixes:

packages:
pkg1:
url: 'http://localhost:<[*PORT*]>/pkg/pkg1'
url: 'localhost:<[*PORT*]>/pkg/pkg1'
version: 1.0.0
hash: deadbeef1234567890abcdef1234567890abcdef
2 changes: 1 addition & 1 deletion tests/pkg/assets/search/gold/search.gold
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ OK
foo:
description: Description of foo. foo-desc.
version: 1.2.3
url: http://localhost:<[*PORT*]>/pkg/foo
url: localhost:<[*PORT*]>/pkg/foo
hash: <[*HASH*]>
license: MIT

Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/assets/search/registry2/foo/0.0.1/desc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: foo
description: Description of foo.
version: 0.0.1
license: MIT
url: 'http://localhost:<[*PORT*]>/pkg/foo'
url: 'localhost:<[*PORT*]>/pkg/foo'
hash: 111111111
2 changes: 1 addition & 1 deletion tests/pkg/assets/search/registry2/foo/5.0.3/desc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: foo
description: Description of foo.
version: 5.0.3
license: MIT
url: 'http://localhost:<[*PORT*]>/pkg/foo'
url: 'localhost:<[*PORT*]>/pkg/foo'
hash: 22222222222
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ description: Description of bar. bar-desc.
license: MIT
dependencies:
foo:
url: http://localhost:<[*PORT*]>/pkg/foo
url: localhost:<[*PORT*]>/pkg/foo
version: 1.2.3
sub:
url: http://localhost:<[*PORT*]>/pkg/sub
url: localhost:<[*PORT*]>/pkg/sub
version: ^3.0.0
environment:
sdk: ^0.1.20
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: pkg1
description: git-package 1
dependencies:
pkg2:
url: http://localhost:<[*PORT*]>/pkg/pkg2
url: localhost:<[*PORT*]>/pkg/pkg2
version: ^2.1.3
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: pkg2
description: git-package 2
dependencies:
pre:
url: http://localhost:<[*PORT*]>/pkg/pkg3
url: localhost:<[*PORT*]>/pkg/pkg3
version: ^3.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: pkg2
description: git-package 2
dependencies:
pre:
url: http://localhost:<[*PORT*]>/pkg/pkg3
url: localhost:<[*PORT*]>/pkg/pkg3
version: ^3.0.0
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: pkg1
description: git-package 1
url: http://localhost:<[*PORT*]>/pkg/pkg1
url: localhost:<[*PORT*]>/pkg/pkg1
version: 1.0.0
dependencies:
- url: 'http://localhost:<[*PORT*]>/pkg/pkg2'
- url: 'localhost:<[*PORT*]>/pkg/pkg2'
version: ^2.1.3
hash: deadbeef1234567890abcdef1234567890abcdef
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pkg2
description: git-package 2
url: http://localhost:<[*PORT*]>/pkg/pkg2
url: localhost:<[*PORT*]>/pkg/pkg2
version: 1.0.0
hash: deadbeef1234567890abcdef1234567890abcdef
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: pkg2
description: git-package 2
url: http://localhost:<[*PORT*]>/pkg/pkg2
url: localhost:<[*PORT*]>/pkg/pkg2
version: 2.4.2
dependencies:
- url: 'http://localhost:<[*PORT*]>/pkg/pkg3'
- url: 'localhost:<[*PORT*]>/pkg/pkg3'
version: ^3.0.0
hash: deadbeef1234567890abcdef1234567890abcdef
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pkg3
description: git-package 3
url: http://localhost:<[*PORT*]>/pkg/pkg3
url: localhost:<[*PORT*]>/pkg/pkg3
version: 3.1.2
hash: deadbeef1234567890abcdef1234567890abcdef
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pkg4
description: git-package 4
url: http://localhost:<[*PORT*]>/pkg/pkg4
url: localhost:<[*PORT*]>/pkg/pkg4
version: 4.9.9
hash: deadbeef1234567890abcdef1234567890abcdef
6 changes: 3 additions & 3 deletions tests/pkg/assets/shared/registry/bar/desc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: bar
description: Description of bar. bar-desc.
version: 2.0.1
license: MIT
url: 'http://localhost:<[*PORT*]>/pkg/bar'
url: 'localhost:<[*PORT*]>/pkg/bar'
dependencies:
- url: 'http://localhost:<[*PORT*]>/pkg/foo'
- url: 'localhost:<[*PORT*]>/pkg/foo'
version: 1.2.3
- url: 'http://localhost:<[*PORT*]>/pkg/sub'
- url: 'localhost:<[*PORT*]>/pkg/sub'
version: ^3.0.0
environment:
sdk: ^0.1.20
Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/assets/shared/registry/foo/1.1.0/desc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: foo
description: Description of foo. foo-desc.
version: 1.1.0
url: 'http://localhost:<[*PORT*]>/pkg/foo'
url: 'localhost:<[*PORT*]>/pkg/foo'
environment:
sdk: ^0.1.0
hash: deadbeef1234567890abcdef1234567890abcdef
Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/assets/shared/registry/foo/1.2.3/desc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: foo
description: Description of foo. foo-desc.
version: 1.2.3
url: http://localhost:<[*PORT*]>/pkg/foo
url: localhost:<[*PORT*]>/pkg/foo
environment:
sdk: ^0.1.30
hash: deadbeef1234567890abcdef1234567890abcdef
Expand Down
Loading
Loading