Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.42k stars 90 forks source link

cycle in libs, StackOverflowError #64

Closed D00mch closed 2 years ago

D00mch commented 2 years ago

To reproduce, just add this dependency in any cljd project: https://pub.dev/packages/bip32_ed25519.

bip32_ed25519: ^0.2.1.

I reproduced it in a just created fresh project. No libs-info even generated.

Here is a libs-info from another project where I have encountered it. 53k lines. libs-info.edn.zip

dupuchba commented 2 years ago

Did not know it was possible but 2 files exports themselves : in bip32-ed25519-dart/lib/bip32_ed25519.dart

library bip32_ed25519;

export 'package:bip32_ed25519/api.dart';
export 'package:bip32_ed25519/src/bip32_ed25519/ed25519_extended.dart';
export 'package:bip32_ed25519/src/bip32_ed25519/ed25519_bip32.dart';

and then in bip32-ed25519-dart/lib/api.dart`

library bip32_ed25519.api;

import 'package:pinenacl/api.dart';

export 'dart:typed_data';
export 'package:pinenacl/ed25519.dart';
export 'package:bip32_ed25519/bip32_ed25519.dart';

/// BIPs
part 'package:bip32_ed25519/src/api/bip32.dart';
part 'package:bip32_ed25519/src/api/bip43.dart';
part 'package:bip32_ed25519/src/api/bip44.dart';
part 'package:bip32_ed25519/src/cardano/api/cip1852.dart';
part 'package:bip32_ed25519/src/cardano/api/cip1854.dart';
dupuchba commented 2 years ago

fixed https://github.com/Tensegritics/ClojureDart/commit/e1f6cf7740b0e6fff42e48b51f384181d2627765