V
V
vgrabkowot2021-05-09 23:58:02
open source
vgrabkowot, 2021-05-09 23:58:02

How to work with code in open source?

Good evening. I have a project A on github that needs a piece of code from project B with significant editing.

Project A has an MIT license, project B has apache2. Actually in the code that I want to copy there is a comment

// Copyright 2014 beego Author. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// www.apache.org/licenses/LICENSE-2.0
// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.


If I copied without changes, then there are no questions, but what if I rewrite half of that code under this license? Remove the comment, edit it somehow, or add your own below?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DollyPapper, 2021-05-10
@vgrabkowot

What is the difficulty? The Apache license imposes no restrictions whatsoever on modifying the source code. According to the license, you must inform in the source that this code is borrowed from such and such a project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question