Skip to content

Commit 6b72894

Browse files
committed
Fix circular dependency that happens if an item from this domain collides
1 parent 2af0994 commit 6b72894

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.2.5] - 2026-01-27
2+
3+
- Fix circular dependency that happens if an item from this domain collides
4+
15
## [1.2.4] - 2026-01-26
26

37
- Fix bug where we include models/entities from command inputs

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-typescript-remote-command-generator (1.2.4)
4+
foobara-typescript-remote-command-generator (1.2.5)
55
foobara (>= 0.1.16, < 2.0.0)
66
foobara-files-generator (< 2.0.0)
77

@@ -17,7 +17,7 @@ GEM
1717
diff-lcs (1.6.2)
1818
docile (1.4.1)
1919
ffi (1.17.3-x86_64-linux-gnu)
20-
foobara (0.4.5)
20+
foobara (0.4.6)
2121
bigdecimal
2222
foobara-lru-cache (< 2.0.0)
2323
foobara-util (< 2.0.0)
@@ -101,15 +101,15 @@ GEM
101101
diff-lcs (>= 1.2.0, < 2.0)
102102
rspec-support (~> 3.13.0)
103103
rspec-support (3.13.6)
104-
rubocop (1.82.1)
104+
rubocop (1.84.0)
105105
json (~> 2.3)
106106
language_server-protocol (~> 3.17.0.2)
107107
lint_roller (~> 1.1.0)
108108
parallel (~> 1.10)
109109
parser (>= 3.3.0.2)
110110
rainbow (>= 2.2.2, < 4.0)
111111
regexp_parser (>= 2.9.3, < 3.0)
112-
rubocop-ast (>= 1.48.0, < 2.0)
112+
rubocop-ast (>= 1.49.0, < 2.0)
113113
ruby-progressbar (~> 1.7)
114114
unicode-display_width (>= 2.4.0, < 4.0)
115115
rubocop-ast (1.49.0)

src/remote_generator/services/aggregate_entity_generator.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ def dependencies
3434
[*super, superclass_generator]
3535
end
3636

37-
def collision_winners
38-
superclass_generator
39-
end
40-
4137
def superclass_generator
4238
@superclass_generator ||= LoadedEntityGenerator.new(relevant_manifest)
4339
end

src/remote_generator/services/typescript_from_manifest_base_generator.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,15 @@ def dependency_roots
145145
@dependency_roots = dependency_group.non_colliding_dependency_roots.sort_by(&:scoped_full_name)
146146
end
147147

148-
def collision_winners = nil
148+
def collision_winners
149+
# TODO: odd that root_manifest exists but isn't decorated. We need a decorated and undecorated method
150+
root_manifest = Manifest::RootManifest.new(self.root_manifest)
151+
152+
[*dependencies].select do |dependency|
153+
root_manifest.contains?(dependency.domain_reference, :domain) &&
154+
dependency.domain == domain
155+
end
156+
end
149157

150158
def ts_instance_path
151159
scoped_path

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Foobara
22
module TypescriptRemoteCommandGenerator
33
module Version
4-
VERSION = "1.2.4".freeze
4+
VERSION = "1.2.5".freeze
55
MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
66
end
77
end

0 commit comments

Comments
 (0)