dbnet-io / dbnet

dbNet is a web-based database client using Go as a backend, and React as front-end
https://docs.dbnet.io
GNU Affero General Public License v3.0
15 stars 1 forks source link

cant build due to github.com/slingdata-io/sling-cli #7

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

Just wanted to try this out but the go.mod has a replace directive to github.com/slingdata-io/sling-cli , and github.com/slingdata-io/sling-cli is not on github it seems. Its 404 :)


replace github.com/slingdata-io/sling-cli => ../sling-cli

thanks

flarco commented 1 year ago

Hi, just pushed https://github.com/dbnet-io/dbnet/commit/9021b196fb67c21244d02033ba93a3f1136ac7f4

Can you try again?

gedw99 commented 1 year ago

@flarco thanks

Will make another attempt :)

gedw99 commented 1 year ago

@flarco

not building for me...

dbnet % go build -o dbnet .
server/server.go:27:12: pattern app: no matching files found
flarco commented 1 year ago

Ah, yes you have to build the frontend. can you see https://github.com/dbnet-io/dbnet/blob/master/build.sh?

gedw99 commented 1 year ago

ah - yeah sorry was too lazy to look...

gedw99 commented 1 year ago

yarn issue :)

I am pretty hopeless at npm and yarn stuff. Tend to use htmx pattern

                                                  %                     
apple@x-MacBook-Pro-2 frontend % yarn && yarn build
yarn install v1.22.19
warning ../../../../../../../../../../package.json: No license field
[1/4] 🔍  Resolving packages...
error Package "dbnet-parser" refers to a non-existing file '"/Users/apple/workspace/go/src/github.com/gedw99/x-platform/data/flarco/dbnet-parser"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
gedw99 commented 1 year ago

yarn is installed etc..

yarn -h
warning ../../../../../../../../../../package.json: No license field

  Usage: yarn [command] [flags]

  Displays help information.

  Options:

    --cache-folder <path>               specify a custom folder that must be used to store the yarn cache
    --check-files                       install will verify file tree of packages for consistency
    --cwd <cwd>                         working directory to use (default: /Users/apple/workspace/go/src/github.com/gedw99/x-platform/data/flarco/dbnet/frontend)
    --disable-pnp                       disable the Plug'n'Play installation
    --emoji [bool]                      enable emoji in output (default: true)
    --enable-pnp, --pnp                 enable the Plug'n'Play installation
    --flat                              only allow one version of a package
    --focus                             Focus on a single workspace by installing remote copies of its sibling workspaces.
    --force                             install and build packages even if they were built before, overwrite lockfile
    --frozen-lockfile                   don't generate a lockfile and fail if an update is needed
    --global-folder <path>              specify a custom folder to store global packages
    --har                               save HAR output of network traffic
    --https-proxy <host>                
    --ignore-engines                    ignore engines check
    --ignore-optional                   ignore optional dependencies
    --ignore-platform                   ignore platform checks
    --ignore-scripts                    don't run lifecycle scripts
    --json                              format Yarn log messages as lines of JSON (see jsonlines.org)
    --link-duplicates                   create hardlinks to the repeated modules in node_modules
    --link-folder <path>                specify a custom folder to store global links
    --modules-folder <path>             rather than installing modules into the node_modules folder relative to the cwd, output them here
    --mutex <type>[:specifier]          use a mutex to ensure only one yarn instance is executing
    --network-concurrency <number>      maximum number of concurrent network requests
    --network-timeout <milliseconds>    TCP timeout for network requests
    --no-bin-links                      don't generate bin links when setting up packages
    --no-default-rc                     prevent Yarn from automatically detecting yarnrc and npmrc files
    --no-lockfile                       don't read or generate a lockfile
    --non-interactive                   do not show interactive prompts
    --no-node-version-check             do not warn when using a potentially unsupported Node version
    --no-progress                       disable progress bar
    --offline                           trigger an error if any required dependencies are not available in local cache
    --otp <otpcode>                     one-time password for two factor authentication
    --prefer-offline                    use network only if dependencies are not available in local cache
    --preferred-cache-folder <path>     specify a custom folder to store the yarn cache if possible
    --prod, --production [prod]         
    --proxy <host>                      
    --pure-lockfile                     don't generate a lockfile
    --registry <url>                    override configuration registry
    -s, --silent                        skip Yarn console logs, other types of logs (script output) will be printed
    --scripts-prepend-node-path [bool]  prepend the node executable dir to the PATH in scripts
    --skip-integrity-check              run install without checking if node_modules is installed
    --strict-semver                     
    --update-checksums                  update package checksums from current repository
    --use-yarnrc <path>                 specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc) (default: )
    -v, --version                       output the version number
    --verbose                           output verbose messages on internal operations
    -h, --help                          output usage information
  Commands:
    - access
    - add
    - audit
    - autoclean
    - bin
    - cache
    - check
    - config
    - create
    - exec
    - generate-lock-entry / generateLockEntry
    - global
    - help
    - import
    - info
    - init
    - install
    - licenses
    - link
    - list
    - login
    - logout
    - node
    - outdated
    - owner
    - pack
    - policies
    - publish
    - remove
    - run
    - tag
    - team
    - unlink
    - unplug
    - upgrade
    - upgrade-interactive / upgradeInteractive
    - version
    - versions
    - why
    - workspace
    - workspaces

  Run `yarn help COMMAND` for more information on specific commands.
  Visit https://yarnpkg.com/en/docs/cli/ to learn more about Yarn.

apple@x-MacBook-Pro-2 frontend % 
flarco commented 1 year ago

Ah yes, I know what's going on, repo dbnet-parser is not set to public, let me fix that.

gedw99 commented 1 year ago

glad you know :) thanks

flarco commented 1 year ago

I think I will refactor to not have yet another external dependency, will get to it later today and let you know.

gedw99 commented 1 year ago

ok cool and thanks.

will work off brew for now

flarco commented 1 year ago

Hi, I just added this folder: https://github.com/dbnet-io/dbnet/tree/master/frontend/dbnet-parser

Feel free to run https://github.com/dbnet-io/dbnet/blob/master/build.sh

gedw99 commented 1 year ago

I thinking I can close this .

i got it working . Thanks @flarco for your help !