Skip to content

[Bug]: Ballerina build looking for exact dependency version even without --sticky flag #44423

@daneshk

Description

@daneshk

Description

I tried to do an offline build of the project[1] by deleting the local cache and with --offline. It failed to build while trying to resolve the http module. Got the following error message.

ERROR [main.bal:(1:1,1:23)] cannot resolve module 'ballerina/http'
ERROR [main.bal:(4:1,4:56)] listener variable incompatible types: 'httpListener' is not a Listener object
ERROR [main.bal:(4:10,4:23)] undefined module 'http'
ERROR [main.bal:(4:10,4:23)] unknown type 'Listener'

Then I tried offline build by removing the Dependency.toml file. It also failed with the following error,

error: failed to load the module 'ballerina/auth:2.14.0' from its BIR due to: cannot resolve module ballerina/log:2.12.0
  1. https://github.com/hevayo/person

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions