tarantool / tarantool/tt

Unable to execute tt pack due to json dependency

Open
#682 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

teamE
Dominant language
Go
Stars
113
Forks
18
Avg merge
4d 11h
Merged PRs (30d)
23

Description

Steps to reproduce:

  • Rockspec
version = 'scm-1'
source   = {
    url = '/tmp',
}

dependencies = {
    'lua >= 5.1',
    'tarantool >= 2.11.0',
    'vshard == 0.1.23-1',
    'http == 1.5.0-1'
}

build = {
    type = 'none';
    variables = {
        TARANTOOL_DIR="$(TARANTOOL_DIR)";
    };
}
  • Tarantool CLI EE 1.3.0, linux/amd64. commit: 0a55fe2
  • Tarantool Enterprise 2.11.1-0-gc42d9735b-r595-gc64

tt pack tgz occurs an error

Error: Could not satisfy dependency json: No results matching query were found for Lua 5.1.

The problem is in one of rockspec files in sdk examples - sdk/examples/ora_writebehind_cache/oracle_rb_cache-0.1.0-1.rockspec

package = "oracle_rb_cache"

version = "0.1.0-1"

description = {
    summary = "Oracle write behind cache sample implementation",
    homepage = "http://tarantool.org"
}

dependencies = {
    'tarantool',
    'json',
    'oracle',
    'http == 1.0.5'
}

source = {
    url = "git@gitlab.com/tarantool/enterprise/central.git"
}

build = {
    type = "none",
}

After this file was removed tt pack worked properly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sdk/examples/ora_writebehind_cache/oracle_rb_cache-0.1.0-1.rockspec and reproduce the failure using tt pack tgz with the provided rockspec and environment details. Check how its json dependency is resolved for Lua 5.1; done means the example no longer causes the reported dependency error and tt pack tgz completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, lua
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.