Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'driver' build fails because "PackageId 'org.sw.demo.madler.zlib' not found" #2

Closed
biocomp opened this issue Oct 6, 2018 · 2 comments

Comments

@biocomp
Copy link
Contributor

biocomp commented Oct 6, 2018

I guess it's missing in packages.db?

@egorpugin
Copy link
Contributor

egorpugin commented Oct 6, 2018

I saw one issue when server is not found (we don't have one public yet), sw fails.
Going to fix this in a short time.
Is it your issue?


For org.sw.demo.madler.zlib see (first line):
https://github.com/SoftwareNetwork/database/blob/master/package.csv


Oh, you mean building sw client.
Yes, it might fail too at the moment.
Please, wait a bit.

@biocomp
Copy link
Contributor Author

biocomp commented Oct 6, 2018

Looks like something is wrong with packages.db.

I see that csv is downloaded correctly, then I see that data is being transferred to the database after download, and it includes the package. But then inside PackagesDatabase::findDependencies, code fails to find that package in the same database. Not sure if it's something with SQL, mysql, database or something else.

I don't think it's because server is not public, but obviously I could be wrong.

Failure is here (q.empty() is true):

        auto q = (*db)(
            custom_query(sqlpp::verbatim("SELECT package_id FROM package WHERE path = '" + dep.ppath.toString() + "' COLLATE NOCASE"))
            .with_result_type_of(select(pkgs.packageId).from(pkgs))
            );
        //auto q = (*db)(select(pkgs.packageId).from(pkgs).where(pkgs.path == dep.ppath.toString()));
        if (q.empty())
            // TODO: replace later with typed exception, so client will try to fetch same package from server
            throw std::runtime_error("PackageId '" + project.ppath.toString() + "' not found.");

But, if it's too early to be trying I guess I'll stop :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants