Skip to content

Commit

Permalink
fix import error (#175)
Browse files Browse the repository at this point in the history
Fixes ImportError: cannot import name 'buildpomupdate'
from partially initialized module 'update' (most
likely due to a circular import)
  • Loading branch information
MohitBhar authored Mar 18, 2024
1 parent 4146e93 commit 2f7f508
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ py_binary(
filegroup(
name = "pomgen_files",
srcs = glob(["*.py",
"pomupdate/*.py",
"common/*.py",
"config/*.py",
"common/*.py",
Expand Down Expand Up @@ -111,7 +112,7 @@ py_test(
"crawl/buildpom.py",
"crawl/git.py",
"tests/buildpomupdatetest.py",
"update/buildpomupdate.py"],
"pomupdate/buildpomupdate.py"],
imports = ["."],
size = "small",
python_version = python_version,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/buildpomupdatetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from crawl import git
from common.os_util import run_cmd
from config import exclusions
from update import buildpomupdate
from pomupdate import buildpomupdate
import os
import tempfile
import unittest
Expand Down
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from common import version_increment_strategy as vis
from config import config
from crawl import bazel
from update import buildpomupdate
from pomupdate import buildpomupdate
import argparse
import os
import sys
Expand Down

0 comments on commit 2f7f508

Please sign in to comment.