arr-ai / arrai

The ultimate data engine.
http://arr.ai
Apache License 2.0
20 stars 15 forks source link

Importing hangs (doesn't fail) on circular dependency #593

Open orlade-anz opened 4 years ago

orlade-anz commented 4 years ago

Please do not post any internal, closed source snippets on this public issue tracker!

Description

If A imports B and B imports A, arr.ai just hangs.

Steps to Reproduce

  1. echo '//{./b}' > a.arrai
  2. echo '//{./a}' > b.arrai
  3. arrai run a.arrai

Expected behavior

Immediate error, informing the user of the circular import that was detected.

Actual behavior

Hangs indefinitely.

Your Environment

$ arrai info
Version    : DIRTY-d03ea0505a101caec78cc198888b36efd520f73d (from v0.137.0)
Git commit : d03ea0505a101caec78cc198888b36efd520f73d
Date       : 2020-08-23T08:49:03Z
OS/arch    : darwin/amd64
Go version : go1.14.4 darwin/amd64