Giter Club home page Giter Club logo

Comments (37)

suptejas avatar suptejas commented on June 14, 2024 3

Also, if you don't mind me asking would love a ⭐ (only if you want to of course)

from volt.

firedupmike avatar firedupmike commented on June 14, 2024 1

Looks like GitHub never learned to format email contents :/

from volt.

suptejas avatar suptejas commented on June 14, 2024

Hello, yes we are aware of this and we are yet to credit these crates on the readme. We will add it now.

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Just for an example:
https://github.com/voltpkg/volt/tree/master/junction is directly lifted from junction

And there are several files scattered across. You should maintain a list of what all third party code is used and then point to their locations and clearly mention that in the readme stating that "This repository contains third party code from ..."

Hopefully you get this set before the authors create reports

from volt.

suptejas avatar suptejas commented on June 14, 2024

The readme has been updated

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike Would you like us to create a CREDITS.md?

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

from volt.

suptejas avatar suptejas commented on June 14, 2024

Cool thanks for bringing this up will do in an hour when I'm free

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike we are now maintaining an active list of packages in our CREDITS.md and we've linked that to the README.md. Thanks for raising this issue and I will be closing it now :)

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

@firedupmike we are now maintaining an active list of packages in our CREDITS.md and we've linked that to the README.md. Thanks for raising this issue and I will be closing it now :)

Your way of maintaining the credits is incorrect. For the sources that have been copied, state which directory from the source tree contains it and its corresponding license.

For example, for the junction folder, add a README.md and link to the original source and license. Your README should state something like:

Volt is licensed under Apache-2 and uses source code from junction in (/path/to/junction/in/your/tree) that is released under the MIT License(link to repo), rustc_lint in (/path) that is released under the Apache license(link to repo), ....

Nowhere are you stating that your codebase itself contains third party code and not via dependencies.

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

I mean you're literally copying all the repos of an entire project in your source code. Why can't you dynamically link it i.e via a dependency? Also, if you really need some changes, why not PR upstream? This is disgustingly bad practice in open source

from volt.

suptejas avatar suptejas commented on June 14, 2024

We're using junction and the rslint set of libraries because:

  1. Current junction crate is completely broken (we're also removing it as a dependency because we no-longer need junctions)
  2. RSLint is yet to release a new version to crates.io so we're waiting for that, I'm in touch with rslint developer

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

@xtremedevx why can't you just use submodules to the repository upstream?

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike yep didn't think of that - will do soon

from volt.

suptejas avatar suptejas commented on June 14, 2024

Also, we do need to have those rslint libraries physically there - we're customizing error messages etc.

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

@xtremedevx And if you really need the changes, why can't you just use git linking in your dependencies? For example:

package = { git="linktorepo" }

Cargo also you to use git dependencies without having to use submodules at all? Read this: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Also, we do need to have those rslint libraries physically there - we're customizing error messages etc.

Huh? Isn't that what submodules are for?

from volt.

suptejas avatar suptejas commented on June 14, 2024

Also, we do need to have those rslint libraries physically there - we're customizing error messages etc.

because this - we're customizing errors on rslint

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Also, we do need to have those rslint libraries physically there - we're customizing error messages etc.

because this - we're customizing errors on rslint

And I'm sure you can map_err in many cases since most of the errors use std's result enumeration. And these will anyways be optimized by the compiler when you build your binary

from volt.

suptejas avatar suptejas commented on June 14, 2024

No - rslint is a linter, we're customizing its output messages

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike we are now maintaining an active list of packages in our CREDITS.md and we've linked that to the README.md. Thanks for raising this issue and I will be closing it now :)

Your way of maintaining the credits is incorrect. For the sources that have been copied, state which directory from the source tree contains it and its corresponding license.

For example, for the junction folder, add a README.md and link to the original source and license. Your README should state something like:

Volt is licensed under Apache-2 and uses source code from junction in (/path/to/junction/in/your/tree) that is released under the MIT License(link to repo), rustc_lint in (/path) that is released under the Apache license(link to repo), ....

Nowhere are you stating that your codebase itself contains third party code and not via dependencies.

I will do this.

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Are you using this: https://docs.rs/rslint_core/0.2.2/rslint_core/?

from volt.

suptejas avatar suptejas commented on June 14, 2024

No, that's an outdated version which does not have typescript support

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Use upstream?

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Via the git linking?

from volt.

suptejas avatar suptejas commented on June 14, 2024

We need to customize the errors which have been output from rslint

from volt.

suptejas avatar suptejas commented on June 14, 2024

that's why we're maintaining physical crates

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

@firedupmike we are now maintaining an active list of packages in our CREDITS.md and we've linked that to the README.md. Thanks for raising this issue and I will be closing it now :)

Your way of maintaining the credits is incorrect. For the sources that have been copied, state which directory from the source tree contains it and its corresponding license.
For example, for the junction folder, add a README.md and link to the original source and license. Your README should state something like:
Volt is licensed under Apache-2 and uses source code from junction in (/path/to/junction/in/your/tree) that is released under the MIT License(link to repo), rustc_lint in (/path) that is released under the Apache license(link to repo), ....
Nowhere are you stating that your codebase itself contains third party code and not via dependencies.

I will do this.

This is important. Also, try to keep the LICENSE and README for the crates intact. There have been so many open source licensing legalities.

from volt.

suptejas avatar suptejas commented on June 14, 2024

Sure, will do

from volt.

suptejas avatar suptejas commented on June 14, 2024

I literally cloned the crates over here https://github.com/rslint/rslint. So it shouldn't be any issue. The crates don't have a README or a LICENSE attached.

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike we are now maintaining an active list of packages in our CREDITS.md and we've linked that to the README.md. Thanks for raising this issue and I will be closing it now :)

Your way of maintaining the credits is incorrect. For the sources that have been copied, state which directory from the source tree contains it and its corresponding license.
For example, for the junction folder, add a README.md and link to the original source and license. Your README should state something like:
Volt is licensed under Apache-2 and uses source code from junction in (/path/to/junction/in/your/tree) that is released under the MIT License(link to repo), rustc_lint in (/path) that is released under the Apache license(link to repo), ....
Nowhere are you stating that your codebase itself contains third party code and not via dependencies.

I will do this.

Will still do this tho

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

That means all of them are licensed under the same license?

from volt.

suptejas avatar suptejas commented on June 14, 2024

Correct - MIT License

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

I literally cloned the crates over here https://github.com/rslint/rslint. So it shouldn't be any issue. The crates don't have a README or a LICENSE attached.

So you should have cloned the licenses in each file/dir. Why don't you create one single large directory with all the other crates and name it rustlint and add the readme and License there? That simplifies things greatly. Cargo allows you to specify paths at will: "../../wherever"

from volt.

suptejas avatar suptejas commented on June 14, 2024

I'm currently working on a whole project restructure, will do it then

from volt.

firedupmike avatar firedupmike commented on June 14, 2024

Also it'd be nice to state "We use rslint for linting" directly on your README and link back to rslint and their Open collective page. If you know, Riccardo has spent a huge amount of time and effort on this.

from volt.

suptejas avatar suptejas commented on June 14, 2024

@firedupmike that's what the CREDITS.md is for though. We do not want a cluttered README.

from volt.

Related Issues (14)

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.