Coder Social home page Coder Social logo

Missing ftest.h about utfcpp HOT 3 CLOSED

Frogsmune avatar Frogsmune commented on June 2, 2024
Missing ftest.h

from utfcpp.

Comments (3)

Elvyria avatar Elvyria commented on June 2, 2024 1

Confusion comes from the fact that GitHub doesn't include submodules inside source code release assets.
This problem also complicates packaging process for Linux distributions, because here's how they are usually structured:

version: 3.2.5
depends: package1, package2, ...
url: "https://github.com/nemtrif/utfcpp/archive/refs/tags/v${version}.tar.gz"
fetch() { curl -o "$url"  } # usually implicit and omitted
build() { cmake .... } # can often be also be implicit and omitted

As you can see, packages that are structured in such simple (preferable) way have no distinction between git or any other source archive, and expect a complete package.

Submodules are not ideal for distribution:

  • What if the submodule repository is not available anymore?
  • What if submodule forcefully rewrote it's git history and commit hashes don't align anymore? (no idea honestly)
  • What if git is not available? (architecture, internet access)
  • git clone by default doesn't clone submodules and there's no clear, verbal indication that something is missing.
  • Do submodules even allow to be distributed? (licenses)
    ...

Since this is not the first time such issue was raised, may i recommend you to manually pack everything for release or setup a GitHub action to do it automatically? This might seem like a GitHub crutch, but it's a common practice.

Hopefully this helps with confusion.

from utfcpp.

nemtrif avatar nemtrif commented on June 2, 2024

I am not sure what you are asking. Yes, ftest is an external dependency, and if you want to run utf8 cpp tests, make sure to include the submodules when doing the clone (https://stackoverflow.com/questions/3796927/how-do-i-git-clone-a-repo-including-its-submodules)

If you don't want to run utf8 cpp tests, there is nothing to build - it is a header-only library.

from utfcpp.

nemtrif avatar nemtrif commented on June 2, 2024

Thanks, @Elvyria . For version 4 I will go with a very different build model for the library. There is no need for regular users to build tests and samples.

from utfcpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.